From 592f56d7b1f23af5ab190ad5fec0b2a59a4af7aa Mon Sep 17 00:00:00 2001 From: Franck Paul Date: Wed, 21 Dec 2022 06:47:38 +0100 Subject: [PATCH] Update _admin.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- _admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_admin.php b/_admin.php index aee2ab2..7d930ce 100644 --- a/_admin.php +++ b/_admin.php @@ -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'); });