Ignore:
Timestamp:
Aug 13, 2013, 11:31:34 PM (11 years ago)
Author:
chronos
Message:
  • Modified: New RSS channels are now registered by modules itself.
  • Modified: ShoutBox transformed to application module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r558 r561  
    2323  var $ModuleManager;
    2424  var $PathItems;
     25  var $Menu;
     26  var $RSSChannels;
    2527 
    2628  function __construct()
    2729  {
    2830    $this->Config = array();
     31    $this->Menu = array();
     32    $this->RSSChannels = array();
    2933  }
    3034 
     
    133137  }
    134138 
     139  function RegisterRSS($Channel, $Pos = NULL)
     140  {
     141        if(is_null($Pos)) $this->RSSChannels[] = $Channel;
     142          else {
     143                array_splice($this->RSSChannels, $Pos, 0, array($Channel));
     144          }
     145  }
     146 
    135147  function SearchPage($PathItems, $Pages)
    136148  {
Note: See TracChangeset for help on using the changeset viewer.