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
@ -34,7 +34,7 @@ dcCore::app()->addBehavior('adminBeforeBlogSettingsUpdate', function (dcSettings
|
|||||||
dcCore::app()->addBehavior('adminBlogPreferencesHeaders', function () {
|
dcCore::app()->addBehavior('adminBlogPreferencesHeaders', function () {
|
||||||
$editor = dcCore::app()->auth->getOption('editor');
|
$editor = dcCore::app()->auth->getOption('editor');
|
||||||
|
|
||||||
echo
|
return
|
||||||
dcCore::app()->callBehavior('adminPostEditor', $editor['xhtml'], 'disclaimer', ['#disclaimer_text'], 'xhtml') .
|
dcCore::app()->callBehavior('adminPostEditor', $editor['xhtml'], 'disclaimer', ['#disclaimer_text'], 'xhtml') .
|
||||||
dcPage::jsModuleLoad(basename(__DIR__) . '/js/admin.js');
|
dcPage::jsModuleLoad(basename(__DIR__) . '/js/admin.js');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user