X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffile_io.php;h=c141feabd932d109637b53179e53cdfb3ef88fdb;hb=ce3dd221068ad6dfe9e2e1f1fb01b924608aef15;hp=92c96b6c417498d36dd16857c860713f05dde013;hpb=6a235495afbc92d4116f94be590d40feb1ad7905;p=shipsimu.git diff --git a/inc/file_io.php b/inc/file_io.php index 92c96b6..c141fea 100644 --- a/inc/file_io.php +++ b/inc/file_io.php @@ -4,11 +4,11 @@ * the initialization was successfull or not because only some class * instances will we generated. * - * @author Roland Haeder - * @version 0.3.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @author Roland Haeder + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,11 +21,14 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * along with this program. If not, see . */ // Get the instance -$io = FileIOHandler::createFileIOHandler(); +$io = ObjectFactory::createObjectByConfiguredName('file_io_class'); + +// Is the app variable there and valid? +if (is_object($app)) $app->setFileIoInstance($io); // [EOF] ?>