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.
master
Franck Paul 2022-12-21 06:47:38 +01:00 committed by GitHub
parent bb709274b2
commit 592f56d7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}); });