Dotclear

Changeset 2159:d709a73eb75b for admin


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
  • admin/index.php

    r2116 r2159  
    228228} 
    229229 
    230 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 
     230if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->getBlogCount() > 1) { 
    231231     echo 
    232232     '<p><a href="index.php?default_blog=1" class="button">'.__('Make this blog my default blog').'</a></p>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map