Include namespaces in {{CASCADINGSOURCES}} output
authorJackmcbarn <jackmcbarn@gmail.com>
Mon, 6 Jan 2014 21:53:43 +0000 (16:53 -0500)
committerJackmcbarn <jackmcbarn@gmail.com>
Mon, 6 Jan 2014 21:53:43 +0000 (16:53 -0500)
Include the namespace of pages in the output of the CASCADINGSOURCES
parser function.

Change-Id: Ie39ecfb52965c36349e601bee092590a147b5a03

includes/parser/CoreParserFunctions.php

index 4e7e663..250442c 100644 (file)
@@ -1139,7 +1139,7 @@ class CoreParserFunctions {
                if ( $parser->incrementExpensiveFunctionCount() ) {
                        $sources = $titleObject->getCascadeProtectionSources();
                        foreach ( $sources[0] as $sourceTitle ) {
-                               $names[] = $sourceTitle->getText();
+                               $names[] = $sourceTitle->getPrefixedText();
                        }
                }