single config file

This commit is contained in:
Steffen Schröder
2014-01-06 14:22:48 +01:00
parent 5d4cf86f61
commit 2c5a7a52e2
7 changed files with 37 additions and 86 deletions

View File

@ -22,11 +22,6 @@ class Server implements CallbackListener {
*/
const TABLE_SERVERS = 'mc_servers';
/**
* Public Properties
*/
public $config = null;
/**
* Private Properties
*/
@ -44,9 +39,6 @@ class Server implements CallbackListener {
$this->maniaControl = $maniaControl;
$this->initTables();
// Load config
$this->config = FileUtil::loadConfig('server.xml');
// Register for callbacks
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MC_ONINIT, $this, 'onInit');