Dotclear

source: plugins/dcLegacyEditor/_install.php @ 2615:09b5b27127a8

Revision 2615:09b5b27127a8, 813 bytes checked in by Nicolas <nikrou77@…>, 12 years ago (diff)

Update Makefile
Activate dcLegacyEditor by default
Addresses #1896

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
23$settings->dclegacyeditor->put('active', true, 'boolean', 'dcLegacyEditor plugin activated ?', false);
24
25$core->setVersion('dclegacyeditor', $version);
26return true;
Note: See TracBrowser for help on using the repository browser.

Sites map