Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

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

    r876 r880  
    1515      "    <pubDate>".date('r')."</pubDate>\n".
    1616      "    <ttl>20</ttl>\n";
    17   foreach($Data['Items'] as $Item)
     17  foreach ($Data['Items'] as $Item)
    1818  {
    1919    $Result .= "    <item>\n".
     
    2626  $Result .= "  </channel>\n".
    2727      "</rss>";
    28   return($Result);
     28  return $Result;
    2929}
    3030
     
    3535    $this->RawPage = true;
    3636
    37     if(array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel'];
     37    if (array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel'];
    3838      else $ChannelName = '';
    39     if(array_key_exists('token', $_GET)) $Token = $_GET['token'];
     39    if (array_key_exists('token', $_GET)) $Token = $_GET['token'];
    4040      else $Token = '';
    41     if(array_key_exists($ChannelName, $this->System->ModuleManager->Modules['News']->RSSChannels))
     41    if (array_key_exists($ChannelName, $this->System->ModuleManager->Modules['News']->RSSChannels))
    4242    {
    4343      $Channel = $this->System->ModuleManager->Modules['News']->RSSChannels[$ChannelName];
    44       if($this->System->User->Licence($Channel['Permission']) or
     44      if ($this->System->User->Licence($Channel['Permission']) or
    4545      $this->System->User->CheckToken($Channel['Permission'], $Token))
    4646      {
    47         if(is_string($Channel['Callback'][0]))
     47        if (is_string($Channel['Callback'][0]))
    4848        {
    4949          $Class = new $Channel['Callback'][0]($this->System);
     
    5353      } else $Output = T('Access denied');
    5454    } else $Output = 'Nezadán žádný kanál';
    55     return($Output);
     55    return $Output;
    5656  }
    5757}
Note: See TracChangeset for help on using the changeset viewer.