]> 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 afb41612bd913bc05e750be7d25a86d00becaebe..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
  *
@@ -27,5 +27,8 @@
 // Get the instance
 $io = ObjectFactory::createObjectByConfiguredName('file_io_class');
 
+// Is the app variable there and valid?
+if (is_object($app)) $app->setFileIoInstance($io);
+
 // [EOF]
 ?>