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:
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

View File

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