Ignore:
Timestamp:
Mar 6, 2023, 1:48:45 AM (21 months ago)
Author:
chronos
Message:
  • Fixed: Class types casting for better type checking.
  • Fixed: XML direct export.
  • Modified: User class instance moved from Core class to ModuleUser class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/RSS.php

    r888 r893  
    3333  function Show(): string
    3434  {
     35    $User = ModuleUser::Cast($this->System->GetModule('User'))->User;
    3536    $this->RawPage = true;
    3637
     
    4243    {
    4344      $Channel = $this->System->ModuleManager->Modules['News']->RSSChannels[$ChannelName];
    44       if ($this->System->User->Licence($Channel['Permission']) or
    45       $this->System->User->CheckToken($Channel['Permission'], $Token))
     45      if ($User->Licence($Channel['Permission']) or
     46      $User->CheckToken($Channel['Permission'], $Token))
    4647      {
    4748        if (is_string($Channel['Callback'][0]))
Note: See TracChangeset for help on using the changeset viewer.