SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/400124 )

Change subject: Replace deprecated ParserLimitReport hook with 
ParserLimitReportPrepare
......................................................................

Replace deprecated ParserLimitReport hook with ParserLimitReportPrepare

The ParserLimitReport hook has been deprecated since MediaWiki 1.22,
so use the suggested ParserLimitReportPrepare hook instead.

Bug: T183652
Change-Id: I00edc18574ff4fe10710edb576a41e90a3474c3d
---
M UserProfile/UserProfileHooks.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile 
refs/changes/24/400124/1

diff --git a/UserProfile/UserProfileHooks.php b/UserProfile/UserProfileHooks.php
index 2d02eb4..702dcd1 100644
--- a/UserProfile/UserProfileHooks.php
+++ b/UserProfile/UserProfileHooks.php
@@ -68,7 +68,7 @@
                                }
                        } else {
                                $wgOut->enableClientCache( false );
-                               $wgHooks['ParserLimitReport'][] = 
'UserProfileHooks::markPageUncacheable';
+                               $wgHooks['ParserLimitReportPrepare'][] = 
'UserProfileHooks::onParserLimitReportPrepare';
                        }
 
                        $wgOut->addModuleStyles( [
@@ -86,10 +86,10 @@
         * Mark page as uncacheable
         *
         * @param Parser $parser
-        * @param string &$limitReport unused
-        * @return bool
+        * @param ParserOutput $output
+        * @return bool true
         */
-       public static function markPageUncacheable( $parser, &$limitReport ) {
+       public static function onParserLimitReportPrepare( $parser, $output ) {
                $parser->disableCache();
                return true;
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00edc18574ff4fe10710edb576a41e90a3474c3d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to