From: Bryan Tong Minh Date: Fri, 25 Sep 2009 14:23:09 +0000 (+0000) Subject: (bug 20802) Fixed thumb.php redirect handling. Changed wfLocalFile call into RepoGrou... X-Git-Tag: 1.31.0-rc.0~39535 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=c184ebec19a9e37a2fa134bdbbe754e495e61d70;p=lhc%2Fweb%2Fwiklou.git (bug 20802) Fixed thumb.php redirect handling. Changed wfLocalFile call into RepoGroup::singleton()->getLocalRepo()->findFile --- 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 ) {