]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix parameter of OC_Response::sendFile
authorBart Visscher <bartv@thisnet.nl>
Fri, 17 Feb 2012 20:35:31 +0000 (21:35 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 17 Feb 2012 21:07:13 +0000 (22:07 +0100)
lib/response.php

index 3765f509c184673c196246be765b00e0dc82e02f..9edae3603b279d5b25371b2f783d43de4f8bcc82 100644 (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));