Dotclear


Ignore:
Timestamp:
01/16/15 14:59:48 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Load all modules _prepend.php before loading their _admin.php or _public.php, addresses #1296

File:
1 edited

Legend:

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

    r2708 r2918  
    114114          uasort($this->modules,array($this,'sortModules')); 
    115115 
    116           # Load translation, _prepend and ns_file 
    117116          foreach ($this->modules as $id => $m) 
    118117          { 
     118               # Load translation and _prepend 
    119119               if (file_exists($m['root'].'/_prepend.php')) 
    120120               { 
     
    133133                    $this->core->adminurl->register('admin.plugin.'.$id,'plugin.php',array('p'=>$id)); 
    134134               } 
     135          } 
     136          foreach ($this->modules as $id => $m) 
     137          { 
     138               # Load ns_file 
    135139               $this->loadNsFile($id,$ns); 
    136140          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map