From: Roland Häder Date: Mon, 9 Jun 2008 20:49:04 +0000 (+0000) Subject: Application selector (demo app!) fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ccedbae4d03eb9a3e2c7f5e8c4656d139a6331be;p=shipsimu.git Application selector (demo app!) fixed --- diff --git a/application/selector/class_ApplicationSelector.php b/application/selector/class_ApplicationSelector.php index fffdd3d..9a8357d 100644 --- a/application/selector/class_ApplicationSelector.php +++ b/application/selector/class_ApplicationSelector.php @@ -46,7 +46,7 @@ class ApplicationSelector extends BaseFrameworkSystem { private $dirIgnoreList = array( ".", "..", - ".htaccess" + ".htaccess", ".svn" ); diff --git a/application/selector/init.php b/application/selector/init.php index ed31055..faba5c4 100644 --- a/application/selector/init.php +++ b/application/selector/init.php @@ -25,6 +25,15 @@ * along with this program. If not, see . */ +// Initialize output system +require(PATH . 'inc/output.php'); + +// Initialize file i/o system +require(PATH . 'inc/file_io.php'); + +// Include the language sub-system +require(PATH . 'inc/language.php'); + // Generate call-back function $callback = sprintf("%s::getInstance", FrameworkConfiguration::getInstance()->readConfig('app_helper_class') @@ -38,14 +47,9 @@ $app->setAppName("Applikationsauswähler"); $app->setAppVersion("0.1a"); $app->setAppShortName(FrameworkConfiguration::getInstance()->readConfig('selector_name')); -// Initialize output system -require(PATH . 'inc/output.php'); - -// Initialize file i/o system -require(PATH . 'inc/file_io.php'); - -// Include the language sub-system -require(PATH . 'inc/language.php'); +// Set instances +$app->setFileIoInstance($io); +$app->setLanguageInstance($lang); // [EOF] ?>