Ignore:
Timestamp:
Dec 11, 2013, 12:15:15 PM (11 years ago)
Author:
chronos
Message:
  • Added: Pages should have set title which is used in HTML header to show title in web browser title bar.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r632 r636  
    5151}
    5252
     53function 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
    5363function ShowPage($Content)
    5464{
    5565        global $TempPageContent, $System;
    5666
    57         $TempPage = new TempPage($System);
    58         $System->Pages['temporary-page'] = 'TempPage';
     67  $TempPage = new TempPage($System);
     68  $System->Pages['temporary-page'] = 'TempPage';
    5969        $_SERVER['REDIRECT_QUERY_STRING'] = 'temporary-page';
    6070        $TempPageContent = $Content;
    61         $System->PathItems = ProcessURL();
     71  $System->PathItems = ProcessURL();
    6272        $System->ShowPage();
    6373}
Note: See TracChangeset for help on using the changeset viewer.