Merge "Call $wgContLang->findVariantLink() in {{PAGESINCATEGORY: }}"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 5 Sep 2013 07:41:39 +0000 (07:41 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 5 Sep 2013 07:41:39 +0000 (07:41 +0000)
1  2 
includes/parser/CoreParserFunctions.php

@@@ -660,9 -604,10 +661,10 @@@ class CoreParserFunctions 
                }
  
                $title = Title::makeTitleSafe( NS_CATEGORY, $name );
 -              if( !$title ) { # invalid title
 +              if ( !$title ) { # invalid title
                        return self::formatRaw( 0, $raw );
                }
+               $wgContLang->findVariantLink( $name, $title, true );
  
                // Normalize name for cache
                $name = $title->getDBkey();