Dotclear


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

Big Oops revert last commit. But do not understand why

File:
1 edited

Legend:

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

    r2989 r2990  
    3939     public function __construct($core,$blog_id) 
    4040     { 
    41           $this->core = &$core; 
    42           $this->con = &$core->con; 
     41          $this->con =& $core->con; 
    4342          $this->table = $core->prefix.'setting'; 
    44           $this->blog_id = &$blog_id; 
     43          $this->blog_id =& $blog_id; 
    4544          $this->loadSettings(); 
    4645     } 
     
    7574                    $rs->movePrev(); 
    7675               } 
    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); 
    7877          } while(!$rs->isStart()); 
    7978     } 
     
    8988     { 
    9089          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); 
    9291          } 
    9392          return $this->namespaces[$ns]; 
     
    281280          if (!isset($this->namespaces[$this->ns])) { 
    282281               // 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); 
    284283          } 
    285284          $this->namespaces[$this->ns]->put($id, $value, $type, $label, $value_change, $global); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map