Dotclear

Ticket #857: patch_modules.patch

File patch_modules.patch, 821 bytes (added by bruno, 16 years ago)
  • class.dc.modules.php

     
    2424     protected $ns; 
    2525     protected $modules = array(); 
    2626     protected $disabled = array(); 
     27     protected $modules_names = array(); 
    2728      
    2829     protected $id; 
    2930     protected $mroot; 
     
    109110           
    110111          # Load translation, _prepend and ns_file 
    111112          foreach ($this->modules as $id => $m) 
    112           { 
     113          {   
    113114               if (file_exists($m['root'].'/_prepend.php')) 
    114115               { 
    115116                    $r = require $m['root'].'/_prepend.php'; 
     
    166167               } 
    167168          } 
    168169           
    169           if ($this->id) { 
     170          if ($this->id && !isset($this->modules_names[$name])) { 
     171               $this->modules_names[$name]=1; 
    170172               $this->modules[$this->id] = array( 
    171173               'root' => $this->mroot, 
    172174               'name' => $name, 

Sites map