Index: trunk/phase3/includes/Title.php |
— | — | @@ -339,7 +339,7 @@ |
340 | 340 | // recursive check to follow double redirects |
341 | 341 | $recurse = $wgMaxRedirects; |
342 | 342 | $titles = array( $title ); |
343 | | - while( --$recurse >= 0 ) { |
| 343 | + while( --$recurse > 0 ) { |
344 | 344 | if( $title->isRedirect() ) { |
345 | 345 | $article = new Article( $title, 0 ); |
346 | 346 | $newtitle = $article->getRedirectTarget(); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -195,6 +195,8 @@ |
196 | 196 | * (bug 17556) <link> parameters in Special:Contributions feeds (RSS and Atom) |
197 | 197 | now point to the actual contributors' feed. |
198 | 198 | * ForeignApiRepos now fetch MIME types, rather than trying to figure it locally |
| 199 | +* (bug 17570) $wgMaxRedirects is now correctly respected when following |
| 200 | + redirects (was previously one more than $wgMaxRedirects) |
199 | 201 | |
200 | 202 | == API changes in 1.15 == |
201 | 203 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |