Merge "Fix protectionexpiry using the wrong page"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 14 Jan 2016 19:03:13 +0000 (19:03 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 14 Jan 2016 19:03:13 +0000 (19:03 +0000)
includes/parser/CoreParserFunctions.php

index d25d11a..91b6080 100644 (file)
@@ -813,7 +813,7 @@ class CoreParserFunctions {
                        $titleObject = $parser->mTitle;
                }
                if ( $titleObject->areRestrictionsLoaded() || $parser->incrementExpensiveFunctionCount() ) {
-                       $expiry = $parser->mTitle->getRestrictionExpiry( strtolower( $type ) );
+                       $expiry = $titleObject->getRestrictionExpiry( strtolower( $type ) );
                        // getRestrictionExpiry() returns false on invalid type; trying to
                        // match protectionlevel() function that returns empty string instead
                        if ( $expiry === false ) {