Fix parameter of OC_Response::sendFile

This commit is contained in:
Bart Visscher 2012-02-17 21:35:31 +01:00
parent bcbebe390b
commit f54c767d72
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class OC_Response {
* @brief Send file as response, checking and setting caching headers
* @param $filepath of file to send
*/
static public function sendFile($filepath=null) {
static public function sendFile($filepath) {
$fp = fopen($filepath, 'rb');
if ($fp) {
self::setLastModifiedHeader(filemtime($filepath));