File_redirection is called statically
This commit is contained in:
parent
6919dda958
commit
45ee2060fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user