]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
File_redirection is called statically
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 7 Jul 2015 17:48:18 +0000 (19:48 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 7 Jul 2015 17:48:18 +0000 (19:48 +0200)
classes/File_redirection.php

index ba516e462325698847294a89cf965bb7f395b214..e0d68b73308c665945cfc84f52b008d521165e30 100644 (file)
@@ -166,7 +166,7 @@ class File_redirection extends Managed_DataObject
      *                size (optional): byte size from Content-Length header
      *                time (optional): timestamp from Last-Modified header
      */
-    public function where($in_url, $discover=true) {
+    static function where($in_url, $discover=true) {
         // let's see if we know this...
         try {
             $a = File::getByUrl($in_url);