Dotclear


Ignore:
Timestamp:
04/29/11 09:33:03 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
userprefs
Children:
46:36f4421937ed, 47:15c028d94180, 50:57f17751ccdb
Message:

Reintroduced class.dc.modules.php for safe_mode on userprefs branch

File:
1 edited

Legend:

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

    r17 r43  
    6666          $this->ns = $ns; 
    6767           
     68          $disabled = isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode']; 
     69          $disabled = $disabled && !get_parent_class($this) ? true : false; 
     70           
    6871          foreach ($this->path as $root) 
    6972          { 
     
    8790                    && file_exists($full_entry.'/_define.php')) 
    8891                    { 
    89                          if (!file_exists($full_entry.'/_disabled')) 
     92                         if (!file_exists($full_entry.'/_disabled') && !$disabled) 
    9093                         { 
    9194                              $this->id = $entry; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map