summaryrefslogtreecommitdiffstats
path: root/core/ajax/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-14 12:21:27 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-14 12:21:27 +0200
commitf9b281576726774c2109f8f909aceeb7320b4cae (patch)
tree4a582c3ed0422fe84c5cbbaacb50b42a1829e857 /core/ajax/preview.php
parente704c8e4dc41e69b4d4d8e8f3d1c1108920bb29a (diff)
downloadnextcloud-server-f9b281576726774c2109f8f909aceeb7320b4cae.tar.gz
nextcloud-server-f9b281576726774c2109f8f909aceeb7320b4cae.zip
remove \OC\Preview::showErrorPreview
Diffstat (limited to 'core/ajax/preview.php')
-rw-r--r--core/ajax/preview.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index a9d127ffcc4..486155831d7 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -15,14 +15,12 @@ $scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] :
if($file === '') {
\OC_Response::setStatus(400); //400 Bad Request
\OC_Log::write('core-preview', 'No file parameter was passed', \OC_Log::DEBUG);
- \OC\Preview::showErrorPreview();
exit;
}
if($maxX === 0 || $maxY === 0) {
\OC_Response::setStatus(400); //400 Bad Request
\OC_Log::write('core-preview', 'x and/or y set to 0', \OC_Log::DEBUG);
- \OC\Preview::showErrorPreview();
exit;
}
@@ -37,6 +35,5 @@ try{
}catch(\Exception $e) {
\OC_Response::setStatus(500);
\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR);
- \OC\Preview::showErrorPreview();
exit;
} \ No newline at end of file