From: Jackmcbarn Date: Mon, 6 Jan 2014 21:53:43 +0000 (-0500) Subject: Include namespaces in {{CASCADINGSOURCES}} output X-Git-Tag: 1.31.0-rc.0~17360 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=d0610c03702edf3d5bd937f3567bf9c51b1abbe7 Include namespaces in {{CASCADINGSOURCES}} output Include the namespace of pages in the output of the CASCADINGSOURCES parser function. Change-Id: Ie39ecfb52965c36349e601bee092590a147b5a03 --- diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 4e7e663b6c..250442c831 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -1139,7 +1139,7 @@ class CoreParserFunctions { if ( $parser->incrementExpensiveFunctionCount() ) { $sources = $titleObject->getCascadeProtectionSources(); foreach ( $sources[0] as $sourceTitle ) { - $names[] = $sourceTitle->getText(); + $names[] = $sourceTitle->getPrefixedText(); } }