From: Tim Starling Date: Tue, 19 May 2009 08:01:36 +0000 (+0000) Subject: Reverted r46706, misses essential updates, the feature can easily be implemented... X-Git-Tag: 1.31.0-rc.0~41749 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=bb97e2e4836483a4f8f92bb412d8260228a6841b;p=lhc%2Fweb%2Fwiklou.git Reverted r46706, misses essential updates, the feature can easily be implemented another way (see CodeReview). For 1.15. --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index d1ac429318..caacb49c26 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -432,14 +432,6 @@ class LinksUpdate { foreach ( $diffs as $name => $sortkey ) { $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); $wgContLang->findVariantLink( $name, $nt, true ); - // for category redirection - if ( $nt->isRedirect() ) { - $at = new Article( $nt ); - $nt = $at->getRedirectTarget(); - // we only redirect a category to another category - if ( $nt->getNamespace() == NS_CATEGORY ) - $name = $nt->getText(); - } $arr[] = array( 'cl_from' => $this->mId, 'cl_to' => $name,