Changeset 636 for trunk/includes
- Timestamp:
- Dec 11, 2013, 12:15:15 PM (11 years ago)
- Location:
- trunk/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Page.php
r586 r636 6 6 var $Database; 7 7 var $RawPage; 8 var $Title; 8 9 9 10 function __construct($System) -
trunk/includes/Version.php
r633 r636 6 6 // and system will need database update. 7 7 8 $Revision = 63 3; // Subversion revision8 $Revision = 636; // Subversion revision 9 9 $DatabaseRevision = 610; // Database structure revision 10 $ReleaseTime = '2013-12- 08';10 $ReleaseTime = '2013-12-11'; -
trunk/includes/global.php
r632 r636 51 51 } 52 52 53 function ShowPageClass($Page) 54 { 55 global $TempPageContent, $System; 56 57 $System->Pages['temporary-page'] = get_class($Page); 58 $_SERVER['REDIRECT_QUERY_STRING'] = 'temporary-page'; 59 $System->PathItems = ProcessURL(); 60 $System->ShowPage(); 61 } 62 53 63 function ShowPage($Content) 54 64 { 55 65 global $TempPageContent, $System; 56 66 57 58 67 $TempPage = new TempPage($System); 68 $System->Pages['temporary-page'] = 'TempPage'; 59 69 $_SERVER['REDIRECT_QUERY_STRING'] = 'temporary-page'; 60 70 $TempPageContent = $Content; 61 71 $System->PathItems = ProcessURL(); 62 72 $System->ShowPage(); 63 73 } -
trunk/includes/system.php
r630 r636 231 231 function ShowPage() 232 232 { 233 $Output = ''; 233 234 /* @var $Page Page */ 234 235 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); … … 237 238 $Page = new $ClassName($this); 238 239 $Output = $Page->GetOutput(); 239 if($Page->RawPage == false) $Output = $this->BaseView->ShowPage($Output); 240 echo($Output); 241 } else echo($this->BaseView->ShowPage($this->PageNotFound())); 240 $this->BaseView->Title = $Page->Title; 241 if($Page->RawPage == false) $Output = $this->BaseView->ShowPage($Output); 242 } else { 243 $Output = $this->PageNotFound(); 244 $this->BaseView->Title = T('Page not found'); 245 $Output = $this->BaseView->ShowPage($Output); 246 } 247 echo($Output); 242 248 } 243 249 } … … 245 251 class BaseView extends View 246 252 { 253 var $Title; 254 247 255 function ShowTopBar() 248 256 { … … 387 395 '<link rel="shortcut icon" href="'.$this->System->Link('/images/favicon.ico').'" />'; 388 396 $Output .= $this->System->ModuleManager->Modules['News']->ShowRSSHeader(); 389 $Output .= '<title>'.$this->System->Config['Web']['Title'].'</title>'. 397 $Title = $this->System->Config['Web']['Title']; 398 if($this->Title != '') $Title = $this->Title.' - '.$Title; 399 $Output .= '<title>'.$Title.'</title>'. 390 400 '</head><body>'; 391 401
Note:
See TracChangeset
for help on using the changeset viewer.