We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d0458b82 authored by mattl's avatar mattl

File_redirection minor coding layout fix

parent 45ee2060
......@@ -176,7 +176,7 @@ class File_redirection extends Managed_DataObject
try {
$b = File_redirection::getByUrl($in_url);
// this is a redirect to $b->file_id
$a = File::getKV('id', $b->file_id);
$a = File::getByID($b->file_id);
return $a->url;
} catch (NoResultException $e) {
// Oh well, let's keep going
......@@ -186,10 +186,10 @@ class File_redirection extends Managed_DataObject
if ($discover) {
$ret = File_redirection::lookupWhere($in_url);
return $ret;
} else {
// No manual dereferencing; leave the unknown URL as is.
return $in_url;
}
// No manual dereferencing; leave the unknown URL as is.
return $in_url;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment