Changeset 2989:e039b91d334e
- Timestamp:
- 04/02/15 21:24:09 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.settings.php
r2566 r2989 39 39 public function __construct($core,$blog_id) 40 40 { 41 $this->con =& $core->con; 41 $this->core = &$core; 42 $this->con = &$core->con; 42 43 $this->table = $core->prefix.'setting'; 43 $this->blog_id = &$blog_id;44 $this->blog_id = &$blog_id; 44 45 $this->loadSettings(); 45 46 } … … 74 75 $rs->movePrev(); 75 76 } 76 $this->namespaces[$ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $ns,$rs);77 $this->namespaces[$ns] = new dcNamespace($this->core, $this->blog_id, $ns,$rs); 77 78 } while(!$rs->isStart()); 78 79 } … … 88 89 { 89 90 if (!array_key_exists($ns, $this->namespaces)) { 90 $this->namespaces[$ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $ns);91 $this->namespaces[$ns] = new dcNamespace($this->core, $this->blog_id, $ns); 91 92 } 92 93 return $this->namespaces[$ns]; … … 280 281 if (!isset($this->namespaces[$this->ns])) { 281 282 // Create namespace if needed 282 $this->namespaces[$this->ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $this->ns);283 $this->namespaces[$this->ns] = new dcNamespace($this->core, $this->blog_id, $this->ns); 283 284 } 284 285 $this->namespaces[$this->ns]->put($id, $value, $type, $label, $value_change, $global);
Note: See TracChangeset
for help on using the changeset viewer.