summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-01 08:53:16 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-01 08:53:16 +0200
commit044d2ece07025b9a9cd5fa3c0514c65369ac9e4e (patch)
treea97fb08e37b0b3dbf31b8e0a3a7e6a2b5a7812f8 /apps/files_versions/ajax
parentf25b71f70e878886a6f71faa43cd46c836ef13f7 (diff)
parent7a8072e958f6956c131ca12e5b7387bcadef1820 (diff)
downloadnextcloud-server-044d2ece07025b9a9cd5fa3c0514c65369ac9e4e.tar.gz
nextcloud-server-044d2ece07025b9a9cd5fa3c0514c65369ac9e4e.zip
Merge pull request #15506 from rullzer/core_apps_oc_log2ocp_util
Move core apps from OC_Log::write to OCP\Util
Diffstat (limited to 'apps/files_versions/ajax')
-rw-r--r--apps/files_versions/ajax/preview.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/ajax/preview.php b/apps/files_versions/ajax/preview.php
index 8ad0fe58306..8a9a5fba14c 100644
--- a/apps/files_versions/ajax/preview.php
+++ b/apps/files_versions/ajax/preview.php
@@ -33,13 +33,13 @@ $scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] :
if($file === '' && $version === '') {
\OC_Response::setStatus(400); //400 Bad Request
- \OC_Log::write('versions-preview', 'No file parameter was passed', \OC_Log::DEBUG);
+ \OCP\Util::writeLog('versions-preview', 'No file parameter was passed', \OCP\Util::DEBUG);
exit;
}
if($maxX === 0 || $maxY === 0) {
\OC_Response::setStatus(400); //400 Bad Request
- \OC_Log::write('versions-preview', 'x and/or y set to 0', \OC_Log::DEBUG);
+ \OCP\Util::writeLog('versions-preview', 'x and/or y set to 0', \OCP\Util::DEBUG);
exit;
}
@@ -55,5 +55,5 @@ try {
$preview->showPreview();
}catch(\Exception $e) {
\OC_Response::setStatus(500);
- \OC_Log::write('core', $e->getmessage(), \OC_Log::DEBUG);
+ \OCP\Util::writeLog('core', $e->getmessage(), \OCP\Util::DEBUG);
}