Ticket #857: patch_modules.patch
File patch_modules.patch, 821 bytes (added by bruno, 16 years ago) |
---|
-
class.dc.modules.php
24 24 protected $ns; 25 25 protected $modules = array(); 26 26 protected $disabled = array(); 27 protected $modules_names = array(); 27 28 28 29 protected $id; 29 30 protected $mroot; … … 109 110 110 111 # Load translation, _prepend and ns_file 111 112 foreach ($this->modules as $id => $m) 112 { 113 { 113 114 if (file_exists($m['root'].'/_prepend.php')) 114 115 { 115 116 $r = require $m['root'].'/_prepend.php'; … … 166 167 } 167 168 } 168 169 169 if ($this->id) { 170 if ($this->id && !isset($this->modules_names[$name])) { 171 $this->modules_names[$name]=1; 170 172 $this->modules[$this->id] = array( 171 173 'root' => $this->mroot, 172 174 'name' => $name,