diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-14 12:21:27 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-14 12:21:27 +0200 |
commit | f9b281576726774c2109f8f909aceeb7320b4cae (patch) | |
tree | 4a582c3ed0422fe84c5cbbaacb50b42a1829e857 /core/ajax/preview.php | |
parent | e704c8e4dc41e69b4d4d8e8f3d1c1108920bb29a (diff) | |
download | nextcloud-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.php | 3 |
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 |