Ignore:
Timestamp:
Feb 22, 2015, 11:05:49 PM (9 years ago)
Author:
chronos
Message:
  • Remove: Trailing spaces from end of lines from all files.
File:
1 edited

Legend:

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

    r765 r815  
    66{
    77  var $RSSChannels;
    8  
     8
    99  function __construct($System)
    1010  {
     
    1717    $this->Dependencies = array();
    1818  }
    19  
     19
    2020  function Start()
    2121  {
    2222        $this->System->RegisterPage('news', 'PageNews');
    2323        $this->System->RegisterPage('rss', 'PageRSS');
    24         $this->RegisterRSS(array('Title' => T('News'), 'Channel' => 'news', 
     24        $this->RegisterRSS(array('Title' => T('News'), 'Channel' => 'news',
    2525          'Callback' => array('PageNews', 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS));
    2626  }
    27  
     27
    2828  function ShowBox()
    2929  {
     
    3737        return($Output);
    3838  }
    39  
     39
    4040  function RegisterRSS($Channel, $Pos = NULL, $Callback = NULL)
    4141  {
     
    4747    }
    4848  }
    49  
     49
    5050  function ShowRSSHeader()
    5151  {
    52     $Output = ''; 
     52    $Output = '';
    5353    foreach($this->RSSChannels as $Channel)
    5454                {
     
    5656                          $Output .= ' <link rel="alternate" title="'.$Channel['Title'].'" href="'.
    5757                        $this->System->Link('/rss/?channel='.$Channel['Channel']).'" type="application/rss+xml" />';
    58                 }               
     58                }
    5959    return($Output);
    6060  }
     
    7474                return($Output);
    7575        }
    76        
     76
    7777        function ShowList()
    7878        {
     
    8282               
    8383                $Output = '<h3>'.T('News').'</h3>'.$PageList['Output'];
    84                 if($this->System->User->Licence(LICENCE_ADMIN)) 
     84                if($this->System->User->Licence(LICENCE_ADMIN))
    8585                        $Output .= ' <a href="?a=add">'.T('Add').'</a>';
    8686                $Output .= '<div class="shoutbox">';
     
    9090                        $Output .= '<div><strong>'.$Line['Title'].' ('.HumanDate($Line['Time']).')</strong><br/> '.$Line['Text'].' ('.$Line['User'].')</div>';
    9191                $Output .= '</div>'.$PageList['Output'];
    92                 return($Output);               
     92                return($Output);
    9393        }
    94        
     94
    9595        function ShowAddForm()
    9696        {
     
    124124                return($Output);
    125125        }
    126        
     126
    127127        function ShowRSS()
    128128        {
     
    149149            'Items' => $Items,
    150150          ));
    151           return($Output);       
     151          return($Output);
    152152        }
    153153}
Note: See TracChangeset for help on using the changeset viewer.