Dotclear

Changeset 2945:d72e6de6395d


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

Should also not load _admin.php/_public.php/_xmlrpc.php if _prepend.php of module returns null

Location:
inc/core
Files:
2 edited

Legend:

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

    r2918 r2945  
    6969          $disabled = isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode']; 
    7070          $disabled = $disabled && !get_parent_class($this) ? true : false; 
     71 
     72          $ignored = array(); 
    7173 
    7274          foreach ($this->path as $root) 
     
    123125                    # If _prepend.php file returns null (ie. it has a void return statement) 
    124126                    if (is_null($r)) { 
     127                         $ignored[] = $id; 
    125128                         continue; 
    126129                    } 
     
    136139          foreach ($this->modules as $id => $m) 
    137140          { 
     141               # If _prepend.php file returns null (ie. it has a void return statement) 
     142               if (in_array($id,$ignored)) { 
     143                    continue; 
     144               } 
    138145               # Load ns_file 
    139146               $this->loadNsFile($id,$ns); 
  • inc/core/class.dc.themes.php

    r2607 r2945  
    4242     @param    version        <b>string</b>       Module version 
    4343     @param    properties     <b>array</b>        extra properties 
    44      (currently available keys : parent, priority, standalone_config, type) 
     44     (currently available keys : parent, priority, standalone_config, type, tplset) 
    4545     */ 
    4646     public function registerModule($name,$desc,$author,$version,$properties = array()) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map