Rev | Line | |
---|
[2614] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
| 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
---|
| 7 | # Licensed under the GPL version 2.0 license. |
---|
| 8 | # See LICENSE file or |
---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 10 | # |
---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
| 12 | |
---|
| 13 | if (!defined('DC_CONTEXT_ADMIN')) { return; } |
---|
| 14 | |
---|
| 15 | $version = $core->plugins->moduleInfo('dclegacyeditor', 'version'); |
---|
| 16 | if (version_compare($core->getVersion('dclegacyeditor'), $version,'>=')) { |
---|
| 17 | return; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | $settings = $core->blog->settings; |
---|
| 21 | $settings->addNamespace('dclegacyeditor'); |
---|
| 22 | |
---|
[2615] | 23 | $settings->dclegacyeditor->put('active', true, 'boolean', 'dcLegacyEditor plugin activated ?', false); |
---|
[2614] | 24 | |
---|
| 25 | $core->setVersion('dclegacyeditor', $version); |
---|
| 26 | return true; |
---|
Note: See
TracBrowser
for help on using the repository browser.