Dotclear

Changeset 2842:71f0884b37ad for admin


Ignore:
Timestamp:
12/15/14 06:35:48 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.7
Message:

Add missing args to adminPostEditor behaviour call, addresses #2014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r2720 r2842  
    168168$core->callBehavior('adminDashboardContents', $core, $__dashboard_contents); 
    169169 
     170# Editor stuff 
     171$admin_post_behavior = ''; 
     172if ($core->auth->user_prefs->dashboard->quickentry) { 
     173     if ($core->auth->check('usage,contentadmin',$core->blog->id)) 
     174     { 
     175          $post_format = $core->auth->getOption('post_format'); 
     176          $post_editor = $core->auth->getOption('editor'); 
     177          if ($post_editor && !empty($post_editor[$post_format])) { 
     178               $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'post'); 
     179          } 
     180     } 
     181} 
     182 
    170183/* DISPLAY 
    171184-------------------------------------------------------- */ 
    172185dcPage::open(__('Dashboard'), 
    173186     dcPage::jsLoad('js/_index.js'). 
    174      $core->callBehavior('adminPostEditor'). 
     187     $admin_post_behavior. 
    175188     # --BEHAVIOR-- adminDashboardHeaders 
    176189     $core->callBehavior('adminDashboardHeaders'), 
Note: See TracChangeset for help on using the changeset viewer.

Sites map