bug 20519 Redirects in the stable version showed up wrong

This commit is contained in:
Aaron Schulz 2009-09-06 10:09:45 +00:00
parent fcf3f35a24
commit 62dd3d9fb6

View file

@ -310,8 +310,9 @@ class MediaWiki {
wfRunHooks( 'InitializeArticleMaybeRedirect',
array(&$title,&$request,&$ignoreRedirect,&$target,&$article) );
// Follow redirects only for... redirects
if( !$ignoreRedirect && $article->isRedirect() ) {
// Follow redirects only for... redirects.
// If $target is set, then a hook wanted to redirect.
if( !$ignoreRedirect && ($target || $article->isRedirect()) ) {
# Is the target already set by an extension?
$target = $target ? $target : $article->followRedirect();
if( is_string( $target ) ) {