Ignore:
Timestamp:
Apr 20, 2013, 11:47:25 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Třída Page dědí Module a tedy v konstruktoru očekává odkaz na System.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r524 r525  
    2222 
    2323// Application modules
     24// TODO: Should be configurable
    2425include_once(dirname(__FILE__).'/../Modules/System/System.php');
    2526include_once(dirname(__FILE__).'/../Modules/Error/Error.php');
     
    6364
    6465  $System = new System();
     66  // TODO: unset general global variable $Config after setting is loaded to objects
    6567  $System->Config = &$Config;
    6668  $System->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);
     
    8284 
    8385  // Register new modules
     86  // TODO: Should be configurable
    8487  $System->ModuleManager->RegisterModule(new ModuleError($System));
    8588  $System->ModuleManager->RegisterModule(new ModuleSystem($System));
    8689  $System->ModuleManager->RegisterModule(new ModuleLog($System));
    8790  $System->ModuleManager->RegisterModule(new ModuleFile($System));
     91  $System->ModuleManager->RegisterModule(new ModuleUser($System));
    8892  $System->ModuleManager->RegisterModule(new ModuleMeteostation($System));
    8993  $System->ModuleManager->RegisterModule(new ModulePortal($System));
     
    9599  $System->ModuleManager->RegisterModule(new ModuleChat($System));
    96100  $System->ModuleManager->RegisterModule(new ModuleWebCam($System));
    97   $System->ModuleManager->RegisterModule(new ModuleUser($System));
    98101  $System->ModuleManager->RegisterModule(new ModuleFinance($System));
    99102  $System->ModuleManager->RegisterModule(new ModuleFinanceBankAPI($System));
Note: See TracChangeset for help on using the changeset viewer.