Application selector (demo app!) fixed
authorRoland Häder <roland@mxchange.org>
Mon, 9 Jun 2008 20:49:04 +0000 (20:49 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 9 Jun 2008 20:49:04 +0000 (20:49 +0000)
application/selector/class_ApplicationSelector.php
application/selector/init.php

index fffdd3d..9a8357d 100644 (file)
@@ -46,7 +46,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
        private $dirIgnoreList = array(
                ".",
                "..",
-               ".htaccess"
+               ".htaccess",
                ".svn"
        );
 
index ed31055..faba5c4 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+// 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&auml;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]
 ?>