Changeset 807 for trunk/includes/system.php
- Timestamp:
- May 25, 2014, 12:33:20 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/system.php
r805 r807 12 12 var $Menu; 13 13 var $DoNotShowPage; 14 var $OnPageNotFound; 14 15 15 16 function __construct() … … 19 20 $this->RSSChannels = array(); 20 21 $this->DoNotShowPage = false; 22 $this->OnPageNotFound = array(); 21 23 } 22 24 … … 245 247 if($Page->RawPage == false) $Output = $this->BaseView->ShowPage($Output); 246 248 } else { 247 $Output = $this->PageNotFound(); 248 $this->BaseView->Title = T('Page not found'); 249 $Output = $this->BaseView->ShowPage($Output); 250 } 249 if((count($this->OnPageNotFound) == 2) 250 and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1])) 251 $Output = $this->BaseView->ShowPage(call_user_func_array($this->OnPageNotFound, array())); 252 else 253 { 254 $Output = $this->PageNotFound(); 255 $this->BaseView->Title = T('Page not found'); 256 $Output = $this->BaseView->ShowPage($Output); 257 } 258 } 251 259 echo($Output); 252 260 } … … 443 451 { 444 452 $Output = $this->ShowHeader().$Content.$this->ShowFooter(); 445 //if($this->System->Config['Web']['FormatOutput']) $Output = $this->FormatOutput($Output); 453 if($this->System->Config['Web']['FormatOutput']) 454 $Output = $this->FormatOutput($Output); 446 455 return($Output); 447 456 }
Note:
See TracChangeset
for help on using the changeset viewer.