Index: core/kernel/globals.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/globals.php (revision 16027) +++ core/kernel/globals.php (revision ) @@ -479,10 +479,10 @@ */ public static function getcsvline($data, $delimiter = ',', $enclosure = '"', $recordSeparator = "\r\n") { - $file = new SplFileObject('php://output', 'w'); - ob_start(); - $file->fputcsv($data, $delimiter, $enclosure); + $fp = fopen('php://output', 'w'); + fputcsv($fp, $data, $delimiter, $enclosure); + fclose($fp); $ret = ob_get_clean(); if ( $recordSeparator != "\n" ) { Index: core/kernel/utility/formatters/upload_formatter.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/formatters/upload_formatter.php (revision 16027) +++ core/kernel/utility/formatters/upload_formatter.php (revision ) @@ -454,7 +454,7 @@ try { return $image_helper->ResizeImage($file_path, $format); } - catch ( \RuntimeException $e ) { + catch ( RuntimeException $e ) { // error, during image resize -> return empty string return ''; } Index: core/units/helpers/image_helper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/helpers/image_helper.php (revision 16027) +++ core/units/helpers/image_helper.php (revision ) @@ -77,7 +77,7 @@ * @param mixed $max_height maximal allowed resized image height or false if no limit * * @return string direct url to resized image - * @throws \RuntimeException When image doesn't exist. + * @throws RuntimeException When image doesn't exist. */ function ResizeImage($src_image, $max_width, $max_height = false) { @@ -102,7 +102,7 @@ } if ( !strlen($src_image) || !file_exists($src_image) ) { - throw new \RuntimeException(sprintf('Image "%s" doesn\'t exist', $src_image)); + throw new RuntimeException(sprintf('Image "%s" doesn\'t exist', $src_image)); } if ($params['max_width'] > 0 || $params['max_height'] > 0) { @@ -711,4 +711,4 @@ return $this->Application->prefixRegistred($prefix); } - } \ No newline at end of file + }