Ignore:
Timestamp:
Apr 24, 2023, 8:26:33 AM (13 months ago)
Author:
chronos
Message:
  • Fixed: Defined missing class fields.
File:
1 edited

Legend:

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

    r919 r949  
    1717  function DoStart(): void
    1818  {
    19     $this->System->FormManager->RegisterClass('Log', array(
     19    Core::Cast($this->System)->FormManager->RegisterClass('Log', array(
    2020      'Title' => 'Záznamy',
    2121      'Table' => 'Log',
     
    5151  function ShowRSS(): string
    5252  {
    53     $this->RawPage = true;
    54     $this->FormatHTML = false;
    5553    Header('Content-Type: text/xml');
    5654    $Count = 100;
     
    7169      (
    7270        'Title' => $Line['Module'].' '.$Line['Operation'].' ('.$Line['UserName'].', '.$Line['IPAddress'].')',
    73         'Link' => 'https://'.$this->System->Config['Web']['Host'].$this->System->Link('/is/?t=Log&a=list'),
     71        'Link' => 'https://'.Core::Cast($this->System)->Config['Web']['Host'].$this->System->Link('/is/?t=Log&a=list'),
    7472        'Description' => $Line['Module'].' '.$Line['Operation'].': '.$Line['Value'].' ('.$Line['UserName'].
    7573          ', '.$Line['IPAddress'].', '.HumanDate($Line['Time']).')',
     
    7977
    8078    $RSS = new RSS();
    81     $RSS->Title = $this->System->Config['Web']['Title'].' - Záznamy';
    82     $RSS->Link = 'https://'.$this->System->Config['Web']['Host'].'/';
    83     $RSS->Description = 'Aktuality '.$this->System->Config['Web']['Description'];
    84     $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail'];
     79    $RSS->Title = Core::Cast($this->System)->Config['Web']['Title'].' - Záznamy';
     80    $RSS->Link = 'https://'.Core::Cast($this->System)->Config['Web']['Host'].'/';
     81    $RSS->Description = 'Aktuality '.Core::Cast($this->System)->Config['Web']['Description'];
     82    $RSS->WebmasterEmail = Core::Cast($this->System)->Config['Web']['AdminEmail'];
    8583    $RSS->Items = $Items;
    8684    return $RSS->Generate();
Note: See TracChangeset for help on using the changeset viewer.