Update _admin.php

This commit is contained in:
Pierre 2021-11-11 00:19:06 +01:00 committed by GitHub
parent a2fd9a3c87
commit 28b2a1766b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# -- BEGIN LICENSE BLOCK ---------------------------------- # -- BEGIN LICENSE BLOCK ----------------------------------
# This file is part of Email Optionnel, a plugin for Dotclear. # This file is part of Email Optionnel, a plugin for Dotclear.
# #
# Copyright (c) 2007-2015 Oleksandr Syenchuk, Pierre Van Glabeke # Copyright (c) 2007-2020 Oleksandr Syenchuk, Pierre Van Glabeke, Gvx
# #
# Licensed under the GPL version 2.0 license. # Licensed under the GPL version 2.0 license.
# A copy is available in LICENSE file or at # A copy is available in LICENSE file or at
@ -10,7 +10,5 @@
# -- END LICENSE BLOCK ------------------------------------ # -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) { return; } if (!defined('DC_CONTEXT_ADMIN')) { return; }
$core->addBehavior('adminBlogPreferencesForm', $core->addBehavior('adminBlogPreferencesForm', array('emailOptionnelBehaviors', 'adminBlogPreferencesForm'));
array('emailOptionnelBehaviors', 'adminBlogPreferencesForm')); $core->addBehavior('adminBeforeBlogSettingsUpdate', array('emailOptionnelBehaviors', 'adminBeforeBlogSettingsUpdate'));
$core->addBehavior('adminBeforeBlogSettingsUpdate',
array('emailOptionnelBehaviors', 'adminBeforeBlogSettingsUpdate'));