Dotclear

Changeset 2989:e039b91d334e


Ignore:
Timestamp:
04/02/15 21:24:09 (10 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Use dcCore pass as argument to constructor instead of global one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.settings.php

    r2566 r2989  
    3939     public function __construct($core,$blog_id) 
    4040     { 
    41           $this->con =& $core->con; 
     41          $this->core = &$core; 
     42          $this->con = &$core->con; 
    4243          $this->table = $core->prefix.'setting'; 
    43           $this->blog_id =& $blog_id; 
     44          $this->blog_id = &$blog_id; 
    4445          $this->loadSettings(); 
    4546     } 
     
    7475                    $rs->movePrev(); 
    7576               } 
    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); 
    7778          } while(!$rs->isStart()); 
    7879     } 
     
    8889     { 
    8990          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); 
    9192          } 
    9293          return $this->namespaces[$ns]; 
     
    280281          if (!isset($this->namespaces[$this->ns])) { 
    281282               // 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); 
    283284          } 
    284285          $this->namespaces[$this->ns]->put($id, $value, $type, $label, $value_change, $global); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map