Background fix. Stay away from OC_Image

pull/1/head
Victor Dubiniuk 11 years ago committed by Tobias Hintze
parent 98ad57eb1a
commit 9bbc4f3bc6

@ -61,10 +61,9 @@ if (method_exists('\OCP\Preview', 'show')){
$iconFile = \OC::$SERVERROOT . '/core/img/filetypes/file.png';
}
$iconData = base64_encode(file_get_contents($iconFile));
$image = new \OC_Image($iconData);
\OC_Util::obEnd();
echo $image->show();
header('Content-Type: ' . \OCP\Files::getMimeType($iconFile));
readfile($iconFile);
}

Loading…
Cancel
Save