Rewrote core:
[core.git] / inc / classes / middleware / io / class_FileIoHandler.php
index e0bf69dc10a586462f8332b7119d3302511b4838..533dce3e2fb0b7744dd4fa4c6b968c7c0c8656c9 100644 (file)
@@ -119,15 +119,22 @@ class FileIoHandler extends BaseMiddleware {
        /**
         * Saves a file with data by using the current output stream
         *
-        * @param       $fileName       Name of the file
-        * @param       $dataArray      Array with file contents
+        * @param       $fileName               Name of the file
+        * @param       $dataStream             File data stream
         * @return      void
         * @see         FileOutputStreamer
         */
-       public function saveFile ($fileName, $dataArray) {
+       public function saveFile ($fileName, $dataStream) {
                // Get output stream
                $outInstance = $this->getOutputStream();
 
+               // Prepare output array
+               $dataArray = array(
+                       // @TODO What is this for?
+                       0 => $this->__toString(),
+                       1 => $dataStream
+               );
+
                // Send the fileName and dataArray to the output handler
                $outInstance->saveFile($fileName, $dataArray);
        }