Dotclear


Ignore:
Timestamp:
10/09/13 15:21:14 (12 years ago)
Author:
Dsls
Branch:
twig
Message:

page layout readapted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/class.dc.admincontext.php

    r1507 r2321  
    6363          } 
    6464     } 
     65      
     66     public function __isset($name) { 
     67          if ($this->isAllowed($name,$this->attributes)) { 
     68               return isset($this->object->$name); 
     69          } else { 
     70               return false; 
     71          } 
     72     } 
     73      
    6574 
    6675     public function __call($name,$args) { 
     
    258267          $p = path::info($_SERVER['REQUEST_URI']); 
    259268          $this->protected_globals['current_page'] = $p['base']; 
    260           $this->protected_globals['blog_count'] = $this->core->auth->blog_count; 
     269          $this->protected_globals['blog_count'] = $this->core->auth->getBlogCount(); 
    261270          $this->protected_globals['rtl'] = l10n::getTextDirection( 
    262271               $this->protected_globals['current_user']['lang']) == 'rtl'; 
     
    266275               'nonce' => $this->core->getNonce() 
    267276          ); 
    268            
    269277          # Keep protected globals safe 
    270278          return array_merge($this->globals,$this->protected_globals); 
     
    421429          # Blogs list 
    422430          $blogs = array(); 
    423           if ($this->core->auth->blog_count > 1 && $this->core->auth->blog_count < 20) { 
     431          $blog_count = $this->core->auth->getBlogCount(); 
     432          if ($blog_count > 1 && $blog_count < 20) { 
    424433               $blog_id = $this->core->blog->id; 
    425434               $rs_blogs = $this->core->getBlogs(array('order'=>'LOWER(blog_name)','limit'=>20)); 
     
    446455          $sform 
    447456               ->addField( 
    448                     new dcFieldText('q','',array( 
     457                    new dcFieldText('qx','',array( 
    449458                    'maxlength'         => 255, 
    450459                    'label' => __('Search:')))) 
     
    460469     protected function getCurrentBlog() 
    461470     { 
    462           $this->protected_globals['current_blog'] = $this->core->auth->blog_count ? 
    463                new dcProxy($this->core->blog,array( 
     471          $this->protected_globals['current_blog'] = $this->core->auth->getBlogCount() ? 
     472               new dcProxy($this->core->blog,array('attr' => array( 
    464473                    'id','name','desc','url','host','creadt','upddt' 
    465                )) : array( 
     474               ))) : array( 
    466475                    'id'      => '', 
    467476                    'name'    => '', 
Note: See TracChangeset for help on using the changeset viewer.

Sites map