Dotclear

Changeset 2795:d1e25da017d5


Ignore:
Timestamp:
11/16/14 09:02:50 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cleaning a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/prepend.php

    r2748 r2795  
    6161} 
    6262 
    63  
    64 function addMenuItem($section,$desc,$adminurl,$icon,$perm) { 
     63function addMenuItem($section,$desc,$adminurl,$icon,$perm) 
     64{ 
    6565     global $core,$_menu; 
    66      $url=$core->adminurl->get($adminurl); 
    67      $_menu[$section]->prependItem( 
    68           $desc, $url, $icon, preg_match('/'.$url.'(\?.*)?$/', 
    69           $_SERVER['REQUEST_URI']), $perm 
    70      ); 
     66 
     67     $url = $core->adminurl->get($adminurl); 
     68 
     69     $_menu[$section]->prependItem($desc,$url,$icon,preg_match('/'.$url.'(\?.*)?$/',$_SERVER['REQUEST_URI']),$perm); 
    7170} 
    7271 
     
    130129     } 
    131130 
    132  
    133131     if (!empty($_REQUEST['switchblog']) 
    134132     && $core->auth->getPermissions($_REQUEST['switchblog']) !== false) 
     
    174172          http::redirect('auth.php'); 
    175173     } 
    176  
    177 /* 
    178      # Check add to my fav fired 
    179      if (!empty($_REQUEST['add-favorite'])) { 
    180           $redir = $_SERVER['REQUEST_URI']; 
    181           # Extract admin page from URI 
    182           # TO BE COMPLETED 
    183      } 
    184 */ 
    185174} 
    186175 
     
    242231     $core->favs = new dcFavorites($core); 
    243232 
    244  
    245233     # [] : Title, URL, small icon, large icon, permissions, id, class 
    246234     # NB : '*' in permissions means any, null means super admin only 
    247  
    248235 
    249236     # Menus creation 
     
    264251     } 
    265252 
    266  
    267253     # Set menu titles 
    268254 
     
    271257     $_menu['Plugins']->title = __('Plugins'); 
    272258 
    273      $url = $core->adminurl->get('admin.blog.theme'); 
    274259     addMenuItem('Blog',__('Blog appearance'),'admin.blog.theme','images/menu/themes.png', 
    275260          $core->auth->check('admin',$core->blog->id)); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map