From 45ee2060fa9317e65ea4ea09084bf8158c10ee61 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 7 Jul 2015 19:48:18 +0200 Subject: [PATCH] File_redirection is called statically --- classes/File_redirection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/File_redirection.php b/classes/File_redirection.php index ba516e4623..e0d68b7330 100644 --- a/classes/File_redirection.php +++ b/classes/File_redirection.php @@ -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);