Application init phase rewritten, data.php now sets app data
[shipsimu.git] / application / ship-simu / init.php
index 7b65cae15d40085de6d9e82e81395a42a75f9f79..39c5bed007acfcb599fb0edf378e27f513a2df07 100644 (file)
@@ -49,23 +49,5 @@ require($cfg->readConfig('base_path') . 'inc/language.php');
 // the inc/database.php script
 require($cfg->readConfig('base_path') . 'inc/database.php');
 
-// Generate call-back function
-$callback = sprintf("%s::getInstance",
-       FrameworkConfiguration::getInstance()->readConfig('app_helper_class')
-);
-
-// Get an instance of the helper
-$app = call_user_func_array($callback, array());
-
-// Set application name and version
-$app->setAppName("Ship-Simu Schiffsimulator");
-$app->setAppVersion("0.0.0");
-$app->setAppShortName("ship-simu");
-
-// Set instances
-$app->setFileIoInstance($io);
-$app->setLanguageInstance($lang);
-$app->setDatabaseInstance($db);
-
 // [EOF]
 ?>