r46070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46069‎ | r46070 | r46071 >
Date:09:32, 23 January 2009
Author:philip
Status:deferred
Tags:
Comment:
Find variant link of categories, to fix some strange bugs in Chinese Wikipedia.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -409,6 +409,7 @@
410410 $sk = $wgUser->getSkin();
411411 foreach ( $categories as $category => $type ) {
412412 $title = Title::makeTitleSafe( NS_CATEGORY, $category );
 413+ $wgContLang->findVariantLink( $category, $title );
413414 $text = $wgContLang->convertHtml( $title->getText() );
414415 $this->mCategoryLinks[$type][] = $sk->makeLinkObj( $title, $text );
415416 }
Index: trunk/phase3/languages/LanguageConverter.php
@@ -199,7 +199,7 @@
200200 }
201201
202202 /**
203 - * caption convert, base on preg_replace_callback
 203+ * caption convert, base on preg_replace
204204 *
205205 * to convert text in "title" or "alt", like '<img alt="text" ... '
206206 * or '<span title="text" ... '

Status & tagging log