diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
commit | 351740601a81558843a92670ad113a61f6e2f1be (patch) | |
tree | 1fab36790b5cafe288a0c37ddcf517ab6ae07aa1 /apps/media | |
parent | 80dff77b659d843994255509fe2f3204e2b6193e (diff) | |
download | nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.tar.gz nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.zip |
port oc_response
Diffstat (limited to 'apps/media')
-rwxr-xr-x | apps/media/ajax/api.php | 4 | ||||
-rwxr-xr-x | apps/media/tomahawk.php | 2 |
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']); |