summaryrefslogtreecommitdiffstats
path: root/core/ajax/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-19 12:16:55 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-19 12:16:55 +0200
commit48f0c54261bfa2d2f20864b0d41db8f1df6f1777 (patch)
treeb9a0a3fea13696a7c740e810e16f98a20e362039 /core/ajax/preview.php
parentf2702ff1ca45d72300eed5dfa58ebc19aa6e9910 (diff)
downloadnextcloud-server-48f0c54261bfa2d2f20864b0d41db8f1df6f1777.tar.gz
nextcloud-server-48f0c54261bfa2d2f20864b0d41db8f1df6f1777.zip
style fixes for preview lib
Diffstat (limited to 'core/ajax/preview.php')
-rw-r--r--core/ajax/preview.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index 486155831d7..af0f0493f4c 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -13,13 +13,15 @@ $maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '36';
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] : true;
if($file === '') {
- \OC_Response::setStatus(400); //400 Bad Request
+ //400 Bad Request
+ \OC_Response::setStatus(400);
\OC_Log::write('core-preview', 'No file parameter was passed', \OC_Log::DEBUG);
exit;
}
if($maxX === 0 || $maxY === 0) {
- \OC_Response::setStatus(400); //400 Bad Request
+ //400 Bad Request
+ \OC_Response::setStatus(400);
\OC_Log::write('core-preview', 'x and/or y set to 0', \OC_Log::DEBUG);
exit;
}
@@ -34,6 +36,5 @@ try{
$preview->show();
}catch(\Exception $e) {
\OC_Response::setStatus(500);
- \OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR);
- exit;
+ \OC_Log::write('core', $e->getmessage(), \OC_Log::DEBUG);
} \ No newline at end of file