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/global.php

    r558 r561  
    2424include_once(dirname(__FILE__).'/../Modules/Server/Server.php');
    2525include_once(dirname(__FILE__).'/../Modules/ClientVersion/ClientVersion.php');
     26include_once(dirname(__FILE__).'/../Modules/ShoutBox/ShoutBox.php');
    2627include_once(dirname(__FILE__).'/../Modules/FrontPage/FrontPage.php');
    2728
     
    7172  $System->ModuleManager->RegisterModule(new ModuleReferrer($System));
    7273  $System->ModuleManager->Modules['Referrer']->Excluded[] = $System->Config['Web']['Host'];
    73   $System->ModuleManager->RegisterModule(new ModuleFrontPage($System));
    7474  $System->ModuleManager->RegisterModule(new ModuleTeam($System));
    7575  $System->ModuleManager->RegisterModule(new ModuleDictionary($System));
     
    7979  $System->ModuleManager->RegisterModule(new ModuleServer($System));
    8080  $System->ModuleManager->RegisterModule(new ModuleClientVersion($System));
     81  $System->ModuleManager->RegisterModule(new ModuleShoutBox($System));
     82  $System->ModuleManager->RegisterModule(new ModuleFrontPage($System));
    8183  $System->ModuleManager->StartAll();
    8284}
    8385
    84 $RSSChannels = array(
    85   array('Title' => 'Změny systému', 'Channel' => 'news'),
    86   array('Title' => 'Poslední překlady', 'Channel' => 'translation'),
    87   array('Title' => 'Kecátko', 'Channel' => 'shoutbox'),
    88 );
     86$System->RegisterRSS(array('Title' => 'Změny systému', 'Channel' => 'news'));
    8987
    9088function GetMicrotime()
Note: See TracChangeset for help on using the changeset viewer.