Dotclear

Changeset 2762:cefad64d50db


Ignore:
Timestamp:
10/26/14 14:43:35 (9 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Add context for page
Add context param for dcLegacyEditor to have same function prototype
Addresses #1992

Location:
plugins
Files:
2 edited

Legend:

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

    r2749 r2762  
    1515     protected static $p_url = 'index.php?pf=dcLegacyEditor'; 
    1616 
    17      public static function adminPostEditor($editor='') { 
     17    // @param context not use but added to have same function prototype 
     18    public static function adminPostEditor($editor='',$context='') { 
    1819          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
    1920 
  • plugins/pages/page.php

    r2740 r2762  
    286286$admin_post_behavior = ''; 
    287287if ($post_editor && !empty($post_editor[$post_format])) { 
    288      $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format]); 
     288     $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'page'); 
    289289} 
    290290 
Note: See TracChangeset for help on using the changeset viewer.

Sites map