From: Roland Haeder Date: Tue, 7 Apr 2015 14:24:19 +0000 (+0200) Subject: This old stuff needs to be rewritten. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=707b65f3102ada14e31873d4882ca77fd4258d55;p=core.git This old stuff needs to be rewritten. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/file_directories/io_stream/class_FileIoStream.php b/inc/classes/main/file_directories/io_stream/class_FileIoStream.php index 9d1bc1a1..f6752b27 100644 --- a/inc/classes/main/file_directories/io_stream/class_FileIoStream.php +++ b/inc/classes/main/file_directories/io_stream/class_FileIoStream.php @@ -83,14 +83,8 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil try { $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName, 'wb')); } catch (FileIoException $e) { - // Create missing directory - $dirName = dirname($fileName); - for ($idx2 = 0; $idx2 < (2 - $idx); $idx2++) { - $dirName = dirname($dirName); - } // END - for - - // Try to create it - @mkdir($dirName); + // Bail out + ApplicationEntryPoint::app_exit('The application has made a fatal error. Exception: ' $e->__toString() . ' with message: ' . $e->getMessage()); } } // END - for