Changeset 2159:d709a73eb75b for inc
- Timestamp:
- 09/30/13 09:51:02 (12 years ago)
- Branch:
- default
- Location:
- inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r2113 r2159 54 54 55 55 # 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) 57 57 { 58 58 $blog_box = … … 60 60 html::escapeHTML($core->blog->name).'</strong>'; 61 61 62 if ($core->auth-> blog_count> 20) {62 if ($core->auth->getBlogCount() > 20) { 63 63 $blog_box .= ' - <a href="blogs.php">'.__('Change blog').'</a>'; 64 64 } -
inc/admin/prepend.php
r2062 r2159 351 351 preg_match('/blogs.php$/',$_SERVER['REQUEST_URI']), 352 352 $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); 354 354 355 355 if (!$user_ui_nofavmenu) { -
inc/core/class.dc.auth.php
r1179 r2159 377 377 return $this->blogs[$blog_id]; 378 378 } 379 380 if ($this->blog_count === null) { 381 $this->blog_count = $this->core->getBlogs(array(),true)->f(0); 382 } 383 379 384 380 if ($this->user_admin) { 385 381 $strReq = 'SELECT blog_id '. … … 404 400 return $this->blogs[$blog_id]; 405 401 } 402 403 public function getBlogCount() { 404 if ($this->blog_count === null) { 405 $this->blog_count = $this->core->getBlogs(array(),true)->f(0); 406 } 407 408 return $this->blog_count; 409 } 406 410 407 411 public function findUserBlog($blog_id=null)
Note: See TracChangeset
for help on using the changeset viewer.