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