Changeset 2991:bcd75776d061 for inc/core/class.dc.settings.php
- Timestamp:
- 04/03/15 08:33:36 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.settings.php
r2990 r2991 22 22 class dcSettings 23 23 { 24 protected $core; ///< <b>connection</b> Database connection object 24 25 protected $con; ///< <b>connection</b> Database connection object 25 26 protected $table; ///< <b>string</b> Settings table name … … 39 40 public function __construct($core,$blog_id) 40 41 { 41 $this->con =& $core->con; 42 $this->core = &$core; 43 $this->con = &$core->con; 42 44 $this->table = $core->prefix.'setting'; 43 $this->blog_id = &$blog_id;45 $this->blog_id = &$blog_id; 44 46 $this->loadSettings(); 45 47 } … … 74 76 $rs->movePrev(); 75 77 } 76 $this->namespaces[$ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $ns,$rs);78 $this->namespaces[$ns] = new dcNamespace($this->core, $this->blog_id, $ns,$rs); 77 79 } while(!$rs->isStart()); 78 80 } … … 88 90 { 89 91 if (!array_key_exists($ns, $this->namespaces)) { 90 $this->namespaces[$ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $ns);92 $this->namespaces[$ns] = new dcNamespace($this->core, $this->blog_id, $ns); 91 93 } 92 94 return $this->namespaces[$ns]; … … 280 282 if (!isset($this->namespaces[$this->ns])) { 281 283 // Create namespace if needed 282 $this->namespaces[$this->ns] = new dcNamespace($ GLOBALS['core'], $this->blog_id, $this->ns);284 $this->namespaces[$this->ns] = new dcNamespace($this->core, $this->blog_id, $this->ns); 283 285 } 284 286 $this->namespaces[$this->ns]->put($id, $value, $type, $label, $value_change, $global);
Note: See TracChangeset
for help on using the changeset viewer.