From ccedbae4d03eb9a3e2c7f5e8c4656d139a6331be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 9 Jun 2008 20:49:04 +0000 Subject: [PATCH] Application selector (demo app!) fixed --- .../selector/class_ApplicationSelector.php | 2 +- application/selector/init.php | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) 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] ?> -- 2.39.5