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/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">';
Note: See TracChangeset for help on using the changeset viewer.