From c184ebec19a9e37a2fa134bdbbe754e495e61d70 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Fri, 25 Sep 2009 14:23:09 +0000 Subject: [PATCH] (bug 20802) Fixed thumb.php redirect handling. Changed wfLocalFile call into RepoGroup::singleton()->getLocalRepo()->findFile --- RELEASE-NOTES | 1 + thumb.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index dfb9670abe..6c9a7009f6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -538,6 +538,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14117) "redirected from" is now also shown on foreign file redirects * (bug 18436) JavaScript-added AJAX messages (from the JS watch/unwatch, for instance) no longer include a redundant "display:block" hardcoded style. +* (bug 20802) Fixed thumb.php redirect handling == API changes in 1.16 == diff --git a/thumb.php b/thumb.php index b973cc654b..6c8dcbff26 100644 --- a/thumb.php +++ b/thumb.php @@ -62,7 +62,7 @@ function wfThumbMain() { } $img = RepoGroup::singleton()->getLocalRepo()->newFromArchiveName( $title, $fileName ); } else { - $img = wfLocalFile( $fileName ); + $img = RepoGroup::singleton()->getLocalRepo()->findFile( $fileName ); } if ( !$img ) { -- 2.20.1