Liangent has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59793


Change subject: Call $wgContLang->findVariantLink() in {{PAGESINCATEGORY: }}
......................................................................

Call $wgContLang->findVariantLink() in {{PAGESINCATEGORY: }}

Change-Id: I27668ba348c45bc34b264f8771e91e58a9920552
---
M includes/parser/CoreParserFunctions.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/93/59793/1

diff --git a/includes/parser/CoreParserFunctions.php 
b/includes/parser/CoreParserFunctions.php
index 36bfb48..dbafeba 100644
--- a/includes/parser/CoreParserFunctions.php
+++ b/includes/parser/CoreParserFunctions.php
@@ -577,6 +577,7 @@
         * @return string
         */
        static function pagesincategory( $parser, $name = '', $arg1 = null, 
$arg2 = null ) {
+               global $wgContLang;
                static $magicWords = null;
                if ( is_null( $magicWords ) ) {
                        $magicWords = new MagicWordArray( array(
@@ -606,6 +607,7 @@
                if( !$title ) { # invalid title
                        return self::formatRaw( 0, $raw );
                }
+               $wgContLang->findVariantLink( $name, $title, true );
 
                // Normalize name for cache
                $name = $title->getDBkey();

-- 
To view, visit https://gerrit.wikimedia.org/r/59793
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27668ba348c45bc34b264f8771e91e58a9920552
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Liangent <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to