Changeset 525 for trunk/Modules


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.
Location:
trunk/Modules
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Chat/Chat.php

    r524 r525  
    33class PageChatHistory extends Page
    44{
    5   function __construct()
     5  function __construct($System)
    66  {
    7     parent::__construct();
     7    parent::__construct($System);
    88    $this->FullTitle = 'Výpis z historie chatu';
    99    $this->ShortTitle = 'Historie chatu';
  • trunk/Modules/Network/Administration.php

    r524 r525  
    33class PageNetworkAdministration extends Page
    44{
    5   function __construct()
     5  function __construct($System)
    66  {
    7     parent::__construct();
     7    parent::__construct($System);
    88    $this->FullTitle = 'Administrace sítě';
    99    $this->ShortTitle = 'Administrace sítě';
  • trunk/Modules/Network/Subnet.php

    r519 r525  
    33class PageSubnet extends Page
    44{
    5   function __construct()
     5  function __construct($System)
    66  {
    7     parent::__construct();
     7    parent::__construct($System);
    88    $this->FullTitle = 'Informace o podsítích';
    99    $this->ShortTitle = 'Podsítě';
  • trunk/Modules/News/NewsPage.php

    r524 r525  
    163163        $DbResult = $this->Database->query('SELECT * FROM News WHERE Id='.$_GET['id']);
    164164        $Row = $DbResult->fetch_array();
    165         if($this->System->Modules['User']->User['Id'] == $Row['User'])
     165        if($this->System->User->User['Id'] == $Row['User'])
    166166        {
    167167          if($Row['Enclosure'] != '')
     
    179179        break;
    180180      default:
    181         if($this->System->Modules['User']->CheckPermission('News', 'Display', 'Group', $Category))
     181        if($this->System->User->CheckPermission('News', 'Display', 'Group', $Category))
    182182        {
    183183          $PerPage = 20;
     
    197197              else $Author = $Row['Name'];
    198198            $Output .= '<div class="Panel"><div class="Title"><a href="?action=view&amp;id='.$Row['Id'].'">'.$Row['Title'].'</a> ('.HumanDate($Row['Date']).', '.$Author.')';
    199             if($this->System->Modules['User']->User['Id'] == $Row['User'])
     199            if($this->System->User->User['Id'] == $Row['User'])
    200200            {
    201201              $Output .= '<div class="Action">';
  • trunk/Modules/System/System.php

    r523 r525  
    33class PageModules extends Page
    44{
    5   function __construct()
    6   {
    7     parent::__construct();
     5  function __construct($System)
     6  {
     7    parent::__construct($System);
    88    $this->FullTitle = 'Správa modulů';
    99    $this->ShortTitle = 'Moduly';
Note: See TracChangeset for help on using the changeset viewer.