]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/file_io.php
Application init phase rewritten, data.php now sets app data
[shipsimu.git] / inc / file_io.php
index 7713c6371a7072924ba8c7eb4df44c3c0e7e3af1..c141feabd932d109637b53179e53cdfb3ef88fdb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  */
 
 // Get the instance
-$io = ObjectFactory::createObjectByConfiguredName('file_io_handler');
+$io = ObjectFactory::createObjectByConfiguredName('file_io_class');
+
+// Is the app variable there and valid?
+if (is_object($app)) $app->setFileIoInstance($io);
 
 // [EOF]
 ?>