From: Mikael Nordfeldth Date: Tue, 7 Jul 2015 17:59:43 +0000 (+0200) Subject: File_redirection minor coding layout fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0458b824a18c4e5c18a3c00ed39e96e695cda82;p=quix0rs-gnu-social.git File_redirection minor coding layout fix --- diff --git a/classes/File_redirection.php b/classes/File_redirection.php index e0d68b7330..75a3b577ae 100644 --- a/classes/File_redirection.php +++ b/classes/File_redirection.php @@ -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; } /**