Update _admin.php
Le behaviour 'adminBlogPreferencesHeaders' attend une chaine de caractère, pas un echo, sinon le JS est chargé avant jQuery et ne connait donc pas $ au moment de son exécution.
This commit is contained in:
parent
bb709274b2
commit
592f56d7b1
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ dcCore::app()->addBehavior('adminBeforeBlogSettingsUpdate', function (dcSettings
|
|||
dcCore::app()->addBehavior('adminBlogPreferencesHeaders', function () {
|
||||
$editor = dcCore::app()->auth->getOption('editor');
|
||||
|
||||
echo
|
||||
return
|
||||
dcCore::app()->callBehavior('adminPostEditor', $editor['xhtml'], 'disclaimer', ['#disclaimer_text'], 'xhtml') .
|
||||
dcPage::jsModuleLoad(basename(__DIR__) . '/js/admin.js');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue