Ignore:
Timestamp:
Sep 12, 2013, 9:14:38 PM (11 years ago)
Author:
chronos
Message:
  • Modified: RSS channel management is now part of News module. In this module other modules can register their RSS channel which will be availble on all pages for subscription.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r579 r581  
    1111  var $PathItems;
    1212  var $Menu;
    13   var $RSSChannels;
    1413  var $DoNotShowPage;
    1514 
     
    188187  }
    189188 
    190   function RegisterRSS($Channel, $Pos = NULL)
    191   {
    192         if(is_null($Pos)) $this->RSSChannels[] = $Channel;
    193           else {
    194                 array_splice($this->RSSChannels, $Pos, 0, array($Channel));
    195           }
    196   }
    197  
    198189  function SearchPage($PathItems, $Pages)
    199190  {
     
    361352                '<script type="text/javascript" src="'.$this->System->Link('/style/global.js').'"></script>'.
    362353                '<link rel="shortcut icon" href="'.$this->System->Link('/images/favicon.ico').'" />';
    363                 foreach($this->System->RSSChannels as $Channel)
    364                 {
    365                         $Output .= ' <link rel="alternate" title="'.$Channel['Title'].'" href="'.
    366                         $this->System->Link('/rss.php?channel='.$Channel['Channel']).'" type="application/rss+xml" />';
    367                 }
     354                $Output .= $this->System->ModuleManager->Modules['News']->ShowRSSHeader();
    368355                $Output .= '<title>'.$this->System->Config['Web']['Title'].'</title>'.
    369356                '</head><body>';
Note: See TracChangeset for help on using the changeset viewer.