X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Ffile_io.php;h=c141feabd932d109637b53179e53cdfb3ef88fdb;hb=21a25cc77b1108c7e33d4ce55b1a85970b355de2;hp=18b0cb4505a8cad613d3dcc3202323f960d9e843;hpb=b912eda46059527fc0475e043944c3ebff47fbcd;p=shipsimu.git diff --git a/inc/file_io.php b/inc/file_io.php index 18b0cb4..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 + * @author Roland Haeder * @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 + * @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 @@ -25,7 +25,10 @@ */ // 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] ?>