From e9c3b1b8d74c0a370fcf6a3b73cb512a2cc6702f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sz=C5=91ts=20=C3=81kos?= Date: Wed, 25 Dec 2019 11:49:40 +0100 Subject: [PATCH] Use non-deprecated wf(Suppress|Restore)Warnings --- WikilogParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WikilogParser.php b/WikilogParser.php index cd144e3..a164e59 100644 --- a/WikilogParser.php +++ b/WikilogParser.php @@ -269,9 +269,9 @@ public static function publish( $parser, $pubdate /*, $author... */ ) { // First argument is the publish date if ( !is_null( $pubdate ) ) { - wfSuppressWarnings(); // Shut up E_STRICT warnings about timezone. + Wikimedia\suppressWarnings(); // Shut up E_STRICT warnings about timezone. $ts = strtotime( $pubdate ); - wfRestoreWarnings(); + Wikimedia\restoreWarnings(); if ( $ts > 0 ) { $parser->mExtWikilog->mPubDate = wfTimestamp( TS_MW, $ts ); } else {