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/lib.dc.page.php

    r2113 r2159  
    5454 
    5555          # List of user's blogs 
    56           if ($core->auth->blog_count == 1 || $core->auth->blog_count > 20) 
     56          if ($core->auth->getBlogCount() == 1 || $core->auth->getBlogCount() > 20) 
    5757          { 
    5858               $blog_box = 
     
    6060               html::escapeHTML($core->blog->name).'</strong>'; 
    6161 
    62                if ($core->auth->blog_count > 20) { 
     62               if ($core->auth->getBlogCount() > 20) { 
    6363                    $blog_box .= ' - <a href="blogs.php">'.__('Change blog').'</a>'; 
    6464               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map