Changeset 1053:96e69ef76fc9 for inc/admin/class.dc.admincontext.php
- Timestamp:
- 12/03/12 14:29:47 (13 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.admincontext.php
r1014 r1053 6 6 protected $js_var; 7 7 protected $head; 8 protected $globals; 8 9 9 10 protected $core; … … 16 17 $this->jsCommon(); 17 18 $this->blogs = array(); 19 $this->globals = array(); 18 20 if ($this->core->auth->blog_count > 1 && $this->core->auth->blog_count < 20) { 19 21 $rs_blogs = $core->getBlogs(array('order'=>'LOWER(blog_name)','limit'=>20)); … … 110 112 } 111 113 public function getGlobals() { 112 return array();114 return $this->globals; 113 115 } 114 116 public function getName() { 115 117 return 'AdminPage'; 116 118 } 119 120 public function setMessage($message) { 121 $this->globals['page_message'] = $message; 122 return $this; 123 } 124 125 public function addError($error) { 126 if (!isset($this->globals['page_errors'])) 127 $this->globals['page_errors']=array(); 128 $this->globals['page_errors'][] = $error; 129 return $this; 130 } 131 117 132 public function getFilters() 118 133 {
Note: See TracChangeset
for help on using the changeset viewer.