From: Jackmcbarn Date: Thu, 14 Jan 2016 17:10:33 +0000 (-0500) Subject: Fix protectionexpiry using the wrong page X-Git-Tag: 1.31.0-rc.0~8337^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=bcb6429372f911bb1f405ac57e934df08adf2621;p=lhc%2Fweb%2Fwiklou.git Fix protectionexpiry using the wrong page Change-Id: I0d8cfd68a735fbcdd32a000ef47e6922a816968e --- diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index d25d11a6db..91b6080c32 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -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 ) {