summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-03 10:46:27 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-03 10:46:27 +0200
commit351740601a81558843a92670ad113a61f6e2f1be (patch)
tree1fab36790b5cafe288a0c37ddcf517ab6ae07aa1 /apps/media
parent80dff77b659d843994255509fe2f3204e2b6193e (diff)
downloadnextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.tar.gz
nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.zip
port oc_response
Diffstat (limited to 'apps/media')
-rwxr-xr-xapps/media/ajax/api.php4
-rwxr-xr-xapps/media/tomahawk.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index d648e6fe975..95259fdefa0 100755
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -110,11 +110,11 @@ if($arguments['action']){
OC_MEDIA_COLLECTION::registerPlay($songId);
header('Content-Type:'.$ftype);
- OC_Response::enableCaching(3600 * 24); // 24 hour
+ OCP\Response::enableCaching(3600 * 24); // 24 hour
header('Accept-Ranges: bytes');
header('Content-Length: '.OC_Filesystem::filesize($arguments['path']));
$mtime = OC_Filesystem::filemtime($arguments['path']);
- OC_Response::setLastModifiedHeader($mtime);
+ OCP\Response::setLastModifiedHeader($mtime);
OC_Filesystem::readfile($arguments['path']);
exit;
diff --git a/apps/media/tomahawk.php b/apps/media/tomahawk.php
index af97c444eb5..d4f5ac6afad 100755
--- a/apps/media/tomahawk.php
+++ b/apps/media/tomahawk.php
@@ -43,7 +43,7 @@ if(isset($_POST['play']) and $_POST['play']=='true'){
$song=OC_MEDIA_COLLECTION::getSong($_POST['song']);
$ftype=OC_Filesystem::getMimeType( $song['song_path'] );
header('Content-Type:'.$ftype);
- OC_Response::disableCaching();
+ OCP\Response::disableCaching();
header('Content-Length: '.OC_Filesystem::filesize($song['song_path']));
OC_Filesystem::readfile($song['song_path']);