Make action=render follow redirects by default. There's no reason why someone may...
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Thu, 15 Nov 2007 15:10:04 +0000 (15:10 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Thu, 15 Nov 2007 15:10:04 +0000 (15:10 +0000)
RELEASE-NOTES
includes/Wiki.php

index 3976ea4..ae75d88 100644 (file)
@@ -152,6 +152,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * If an IP address is blocked as part of a rangeblock, attempting to unblock
   the single IP should not unblock the entire range.
 * (bug 6695) Fix native language name of Southern Sotho (Sesotho) (st)
+* Make action=render follow redirects by default
 
 === API changes in 1.12 ===
 
index 1b2e557..02f9430 100644 (file)
@@ -252,7 +252,7 @@ class MediaWiki {
                $article = $this->articleFromTitle( $title );
 
                // Namespace might change when using redirects
-               if( $action == 'view' && !$request->getVal( 'oldid' ) &&
+               if( ( $action == 'view' || $action == 'render' ) && !$request->getVal( 'oldid' ) &&
                                                $request->getVal( 'redirect' ) != 'no' ) {
 
                        $dbr = wfGetDB(DB_SLAVE);