From: Roland Häder Date: Thu, 22 May 2014 08:18:11 +0000 (+0200) Subject: This factory method requires a 2nd parameter, 'wb' should be okay. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3879e54b9434e43bef54dc6818ec1cef59757bf3;p=core.git This factory method requires a 2nd parameter, 'wb' should be okay. 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 599bc9f3..14f71904 100644 --- a/inc/classes/main/file_directories/io_stream/class_FileIoStream.php +++ b/inc/classes/main/file_directories/io_stream/class_FileIoStream.php @@ -81,7 +81,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil for ($idx = 0; $idx < 5; $idx++) { // Get a file output pointer try { - $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName)); + $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName, 'wb')); } catch (FileIoException $e) { // Create missing directory $dirName = dirname($fileName);