Changeset 800 for trunk/includes/system.php
- Timestamp:
- Mar 16, 2014, 11:15:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/system.php
r798 r800 158 158 $this->ModuleManager->RegisterModule(new ModuleDownload($System)); 159 159 $this->ModuleManager->RegisterModule(new ModuleForum($System)); 160 $this->ModuleManager->RegisterModule(new ModuleRedirection($System)); 160 161 $this->ModuleManager->StartAll(); 161 162 … … 203 204 function SearchPage($PathItems, $Pages) 204 205 { 205 if(count($PathItems) > 0) $PathItem = $PathItems[0];206 else $PathItem = '';206 if(count($PathItems) == 0) $PathItems = array(''); 207 $PathItem = $PathItems[0]; 207 208 if(array_key_exists($PathItem, $Pages)) 208 209 { … … 237 238 /* @var $Page Page */ 238 239 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 239 if( $ClassName != '')240 if(($ClassName != '') and (class_exists($ClassName))) 240 241 { 241 242 $Page = new $ClassName($this);
Note:
See TracChangeset
for help on using the changeset viewer.