Dotclear


Ignore:
Timestamp:
03/09/14 11:02:01 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Addresse #1896 : simplify; get editor from core instead of retrieve it from parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r2679 r2681  
    1515     protected static $p_url = 'index.php?pf=dcLegacyEditor'; 
    1616 
    17      public static function adminPostEditor($editor) { 
    18           if ($editor!='dcLegacyEditor') {return;} 
     17     public static function adminPostEditor($editor='') { 
     18        global $core; 
     19 
     20          if (!$core->auth->getOption('editor') || $core->auth->getOption('editor')!='dcLegacyEditor') {return;} 
    1921 
    2022          return 
Note: See TracChangeset for help on using the changeset viewer.

Sites map