Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -271,7 +271,7 @@ |
272 | 272 | * Add an array of categories, with names in the keys |
273 | 273 | */ |
274 | 274 | public function addCategoryLinks( $categories ) { |
275 | | - global $wgUser, $wgContLang; |
| 275 | + global $wgUser, $wgContLang, $wgTitle; |
276 | 276 | |
277 | 277 | if ( !is_array( $categories ) ) { |
278 | 278 | return; |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | |
300 | 300 | # Remove categories with hiddencat |
301 | 301 | foreach ( $res as $row ) { |
302 | | - if ( isset( $row->pp_value ) ) { |
| 302 | + if ( isset( $row->pp_value ) and $wgTitle->getNamespace() != NS_CATEGORY ) { |
303 | 303 | unset( $categories[$row->page_title] ); |
304 | 304 | } |
305 | 305 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -38,6 +38,7 @@ |
39 | 39 | * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge |
40 | 40 | * (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki |
41 | 41 | * (bug 13137) Bots to edit protected pages |
| 42 | +* (bug 13140) Show parent categories in category namespace |
42 | 43 | |
43 | 44 | === API changes in 1.13 === |
44 | 45 | |