r31250 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31249‎ | r31250 | r31251 >
Date:11:44, 25 February 2008
Author:huji
Status:old
Tags:
Comment:
(bug 13140) Show parent categories in category namespace
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -271,7 +271,7 @@
272272 * Add an array of categories, with names in the keys
273273 */
274274 public function addCategoryLinks( $categories ) {
275 - global $wgUser, $wgContLang;
 275+ global $wgUser, $wgContLang, $wgTitle;
276276
277277 if ( !is_array( $categories ) ) {
278278 return;
@@ -298,7 +298,7 @@
299299
300300 # Remove categories with hiddencat
301301 foreach ( $res as $row ) {
302 - if ( isset( $row->pp_value ) ) {
 302+ if ( isset( $row->pp_value ) and $wgTitle->getNamespace() != NS_CATEGORY ) {
303303 unset( $categories[$row->page_title] );
304304 }
305305 }
Index: trunk/phase3/RELEASE-NOTES
@@ -38,6 +38,7 @@
3939 * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge
4040 * (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki
4141 * (bug 13137) Bots to edit protected pages
 42+* (bug 13140) Show parent categories in category namespace
4243
4344 === API changes in 1.13 ===
4445

Status & tagging log