(bug 20802) Fixed thumb.php redirect handling. Changed wfLocalFile call into RepoGrou...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 25 Sep 2009 14:23:09 +0000 (14:23 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 25 Sep 2009 14:23:09 +0000 (14:23 +0000)
RELEASE-NOTES
thumb.php

index dfb9670..6c9a700 100644 (file)
@@ -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 ==
 
index b973cc6..6c8dcbf 100644 (file)
--- 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 ) {