Dotclear

Changeset 2681:0d5aeefe7bd8


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

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r2679 r2681  
    379379     dcPage::jsMetaEditor(). 
    380380     dcPage::jsLoad('js/_post.js'). 
    381      $core->callBehavior('adminPostEditor',$editor). 
     381     $core->callBehavior('adminPostEditor'). 
    382382     dcPage::jsConfirmClose('entry-form','comment-form'). 
    383383     # --BEHAVIOR-- adminPostHeaders 
  • 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