Dotclear

source: plugins/dcLegacyEditor/_install.php @ 2861:8e5d6cfe3f33

Revision 2861:8e5d6cfe3f33, 818 bytes checked in by zeiram@…, 11 years ago (diff)

Make the dcLegacyEditor setting global on installation of the plugin.

Line 
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
13if (!defined('DC_CONTEXT_ADMIN')) { return; }
14
15$version = $core->plugins->moduleInfo('dcLegacyEditor', 'version');
16if (version_compare($core->getVersion('dcLegacyEditor'), $version,'>=')) {
17  return;
18}
19
20$settings = $core->blog->settings;
21$settings->addNamespace('dclegacyeditor');
22$settings->dclegacyeditor->put('active', true, 'boolean', 'dcLegacyEditor plugin activated ?', false, true);
23
24$core->setVersion('dcLegacyEditor', $version);
25return true;
Note: See TracBrowser for help on using the repository browser.

Sites map