Dotclear


Ignore:
Timestamp:
09/30/13 09:51:02 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

blog_count was only set when getPermissions was called.
Add a new method (getBlogCount()) that used blog_count param or retrieved it from database.
close 1545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/prepend.php

    r2062 r2159  
    351351          preg_match('/blogs.php$/',$_SERVER['REQUEST_URI']), 
    352352          $core->auth->isSuperAdmin() || 
    353           $core->auth->check('usage,contentadmin',$core->blog->id) && $core->auth->blog_count > 1); 
     353          $core->auth->check('usage,contentadmin',$core->blog->id) && $core->auth->getBlogCount() > 1); 
    354354 
    355355     if (!$user_ui_nofavmenu) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map