aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-04-09 12:36:10 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-05-18 10:57:52 +0200
commit7a8072e958f6956c131ca12e5b7387bcadef1820 (patch)
tree37b3d34a30e1a09b41deb7d122746e374895c824 /apps/files_versions
parent73a3086945b41afa39debd89481c021934dedb67 (diff)
downloadnextcloud-server-7a8072e958f6956c131ca12e5b7387bcadef1820.tar.gz
nextcloud-server-7a8072e958f6956c131ca12e5b7387bcadef1820.zip
Move core apps from OC_Log::write to OCP\Util
Diffstat (limited to 'apps/files_versions')
-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 fab46abdc48..2d3a8477f17 100644
--- a/apps/files_versions/ajax/preview.php
+++ b/apps/files_versions/ajax/preview.php
@@ -34,13 +34,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;
}
@@ -56,5 +56,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);
}