Dotclear

Changeset 2247:931dddd634d0


Ignore:
Timestamp:
10/04/13 13:35:02 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

menu-new-post id is no more useful

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/install/index.php

    r2183 r2247  
    211211          $init_fav['new_post'] = array('new_post','New entry','post.php', 
    212212               'images/menu/edit.png','images/menu/edit-b.png', 
    213                'usage,contentadmin',null,'menu-new-post'); 
     213               'usage,contentadmin',null,null); 
    214214          $init_fav['newpage'] = array('newpage','New page','plugin.php?p=pages&amp;act=page', 
    215215               'index.php?pf=pages/icon-np.png','index.php?pf=pages/icon-np-big.png', 
  • inc/admin/class.dc.favorites.php

    r2234 r2247  
    406406                    'small-icon' => 'images/menu/edit.png', 
    407407                    'large-icon' => 'images/menu/edit-b.png', 
    408                     'permissions' =>'usage,contentadmin', 
    409                     'id' => 'menu-new-post'), 
     408                    'permissions' =>'usage,contentadmin'), 
    410409               'posts' => array( 
    411410                    'title' => __('Entries'), 
     
    467466                    'url' => 'plugins.php', 
    468467                    'small-icon' => 'images/menu/plugins.png', 
    469                     'large-icon' => 'images/menu/plugins-b.png'),  
     468                    'large-icon' => 'images/menu/plugins-b.png'), 
    470469               'langs' => array( 
    471470                    'title' => __('Languages'), 
     
    480479          )); 
    481480     } 
    482       
    483      public static function postsDashboard($core,$v) { 
     481 
     482     public static function postsDashboard($core,$v) 
     483     { 
    484484          $post_count = $core->blog->getPosts(array(),true)->f(0); 
    485485          $str_entries = __('%d entry', '%d entries',$post_count); 
    486486          $v['title'] = sprintf($str_entries,$post_count); 
    487487     } 
    488       
    489      public static function commentsDashboard($core,$v) { 
     488 
     489     public static function commentsDashboard($core,$v) 
     490     { 
    490491          $comment_count = $core->blog->getComments(array(),true)->f(0); 
    491492          $str_comments = __('%d comments', '%d comments',$comment_count); 
    492493          $v['title']= sprintf($str_comments,$comment_count); 
    493494     } 
    494  
    495  
    496495} 
  • inc/admin/prepend.php

    r2229 r2247  
    262262     $_menu['Blog']->prependItem(__('New entry'),'post.php','images/menu/edit.png', 
    263263          preg_match('/post.php$/',$_SERVER['REQUEST_URI']), 
    264           $core->auth->check('usage,contentadmin',$core->blog->id),'menu-new-post'); 
     264          $core->auth->check('usage,contentadmin',$core->blog->id)); 
    265265      
    266266     $_menu['System']->prependItem(__('Update'),'update.php','images/menu/update.png', 
  • inc/dbschema/upgrade.php

    r2144 r2247  
    152152                    $init_fav['new_post'] = array('new_post','New entry','post.php', 
    153153                         'images/menu/edit.png','images/menu/edit-b.png', 
    154                          'usage,contentadmin',null,'menu-new-post'); 
     154                         'usage,contentadmin',null,null); 
    155155                    $init_fav['newpage'] = array('newpage','New page','plugin.php?p=pages&amp;act=page', 
    156156                         'index.php?pf=pages/icon-np.png','index.php?pf=pages/icon-np-big.png', 
Note: See TracChangeset for help on using the changeset viewer.

Sites map