Changeset 525 for trunk/Common/Page.php


Ignore:
Timestamp:
Apr 20, 2013, 11:47:25 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Třída Page dědí Module a tedy v konstruktoru očekává odkaz na System.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Page.php

    r524 r525  
    1313  var $FullTitle;
    1414 
    15   function __construct()
     15  function __construct($System)
    1616  {
    1717    global $Config;
     18   
     19    parent::__construct($System);
    1820   
    1921    $this->FormatHTML = $Config['Web']['FormatHTML'];
     
    4648      {
    4749        $PageClass = $Page->ParentClass;
    48         $Page = new $PageClass();
     50        $Page = new $PageClass($this->System);
    4951        $ScriptName = substr($ScriptName, 0, strrpos($ScriptName, '/'));
    5052      } else $Page = null;
Note: See TracChangeset for help on using the changeset viewer.