Fix parameter of OC_Response::sendFile
This commit is contained in:
parent
bcbebe390b
commit
f54c767d72
|
@ -146,7 +146,7 @@ class OC_Response {
|
||||||
* @brief Send file as response, checking and setting caching headers
|
* @brief Send file as response, checking and setting caching headers
|
||||||
* @param $filepath of file to send
|
* @param $filepath of file to send
|
||||||
*/
|
*/
|
||||||
static public function sendFile($filepath=null) {
|
static public function sendFile($filepath) {
|
||||||
$fp = fopen($filepath, 'rb');
|
$fp = fopen($filepath, 'rb');
|
||||||
if ($fp) {
|
if ($fp) {
|
||||||
self::setLastModifiedHeader(filemtime($filepath));
|
self::setLastModifiedHeader(filemtime($filepath));
|
||||||
|
|
Loading…
Reference in New Issue