From: Victor Vasiliev Date: Thu, 15 Nov 2007 15:10:04 +0000 (+0000) Subject: Make action=render follow redirects by default. There's no reason why someone may... X-Git-Tag: 1.31.0-rc.0~50860 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=29308b8ce887bbc8f71f18d8246b68dbb282cd5c;p=lhc%2Fweb%2Fwiklou.git Make action=render follow redirects by default. There's no reason why someone may want to render redirects (even if he need, he may use redirect=no) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3976ea4d85..ae75d88115 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Wiki.php b/includes/Wiki.php index 1b2e55745e..02f9430543 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -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);