Index: trunk/extensions/NewsChannel/NewsChannel_body.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | * outputChannelMarkup( $newsItems ) function. |
71 | 71 | */ |
72 | 72 | function showChannel() { |
73 | | - global $wgContLang, $wgCanonicalNamespaceNames, $wgServer, $wgStylePath, $wgRequest, $wgOut; |
| 73 | + global $wgContLang, $wgServer, $wgStylePath, $wgRequest, $wgOut; |
74 | 74 | global $wgNewsChannelDefaultItems, $wgNewsChannelMaxItems, $wgNewsChannelAuthorizedEditors; |
75 | 75 | global $wgNewsChannelCategory, $wgNewsChannelExcludeCategory, $wgNewsChannelRemoveArticlePrefix; |
76 | 76 | |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | |
96 | 96 | $categoryPrefixesRegex = '/^(' . |
97 | 97 | preg_quote( $wgContLang->getNsText( NS_CATEGORY ), "/" ) . '|' . |
98 | | - preg_quote( $wgCanonicalNamespaceNames[ NS_CATEGORY ] ) . '):/i'; |
| 98 | + preg_quote( MWNamespace::getCanonicalName( NS_CATEGORY ) ) . '):/i'; |
99 | 99 | |
100 | 100 | $inCategoriesStr = $dbr->addQuotes( str_replace( ' ', '_', $wgNewsChannelCategory ) ) . ','; |
101 | 101 | $inCategoriesCount = 1; |