From c0d5b635883ad3ee1bbf856b3e04c0a246f73df8 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Fri, 22 Dec 2006 19:50:56 +0000 Subject: [PATCH] Commited the categories redirect stuff by mistake. --- includes/Namespace.php | 2 +- includes/Parser.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/includes/Namespace.php b/includes/Namespace.php index c296de9c2c..78493902f2 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -50,7 +50,7 @@ class Namespace { * @return bool */ static function isMovable( $index ) { - return !( $index < NS_MAIN || $index == NS_IMAGE ); + return !( $index < NS_MAIN || $index == NS_IMAGE || $index == NS_CATEGORY ); } /** diff --git a/includes/Parser.php b/includes/Parser.php index f5425c05be..484c7dc891 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1746,17 +1746,6 @@ class Parser wfProfileIn( "$fname-category" ); $s = rtrim($s . "\n"); # bug 87 - # Redirect categories - bug 3311 - $dbw =& wfGetDB( DB_SLAVE ); - $obj = $dbw->selectRow( array( 'redirect' ), - array( 'rd_namespace', 'rd_title' ), - array( 'rd_from' => $nt->getArticleID() ), - __METHOD__ ); - if ( $obj && $obj->rd_namespace == NS_CATEGORY ) { - # The category redirects to another category; follow it - $nt = Title::makeTitle( NS_CATEGORY, $obj->rd_title ); - } - if ( $wasblank ) { if ( $this->mTitle->getNamespace() == NS_CATEGORY ) { $sortkey = $this->mTitle->getText(); -- 2.20.1