Changeset 589 for trunk/includes/system.php
- Timestamp:
- Nov 18, 2013, 10:32:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/system.php
r584 r589 190 190 array_shift($PathItems); 191 191 return($this->SearchPage($PathItems, $Pages[$PathItem])); 192 } else return($Pages[$PathItem]); 192 } else 193 { 194 if(count($PathItems) == 1) return($Pages[$PathItem]); 195 else return(''); // Unexpected subpages 196 } 193 197 } else return(''); 194 198 } … … 196 200 function PageNotFound() 197 201 { 202 if(isset($this->ModuleManager->Modules['Log'])) 203 $this->ModuleManager->Modules['Log']->WriteLog('Stránka "'. 204 implode('/', $this->PathItems).'" nenalezena', LOG_TYPE_ERROR); 198 205 return(ShowMessage('Stránka "'.implode('/', $this->PathItems).'" nenalezena.', MESSAGE_CRITICAL)); 199 206 } … … 202 209 { 203 210 /* @var $Page Page */ 204 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 211 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 205 212 if($ClassName != '') 206 213 {
Note:
See TracChangeset
for help on using the changeset viewer.