| Revision 2706:c7f1c1418fbf,
            812 bytes
            checked in by Nicolas <nikrou77@…>, 11 years ago
            (diff) | 
        
          | 
Addresses #1896. dcLegacyEditor must be enabled for new installation and it should be default editor.
 | 
      
      
        
  | 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 |  | 
|---|
| [2706] | 15 | $version = $core->plugins->moduleInfo('dcLegacyEditor', 'version'); | 
|---|
|  | 16 | if (version_compare($core->getVersion('dcLegacyEditor'), $version,'>=')) { | 
|---|
| [2614] | 17 | return; | 
|---|
|  | 18 | } | 
|---|
|  | 19 |  | 
|---|
|  | 20 | $settings = $core->blog->settings; | 
|---|
|  | 21 | $settings->addNamespace('dclegacyeditor'); | 
|---|
| [2615] | 22 | $settings->dclegacyeditor->put('active', true, 'boolean', 'dcLegacyEditor plugin activated ?', false); | 
|---|
| [2614] | 23 |  | 
|---|
| [2706] | 24 | $core->setVersion('dcLegacyEditor', $version); | 
|---|
| [2614] | 25 | return true; | 
|---|
       
      Note: See 
TracBrowser
        for help on using the repository browser.