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 {