From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- includes/filebackend/FSFile.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'includes/filebackend/FSFile.php') diff --git a/includes/filebackend/FSFile.php b/includes/filebackend/FSFile.php index 6ee9b2e0..213bb87d 100644 --- a/includes/filebackend/FSFile.php +++ b/includes/filebackend/FSFile.php @@ -75,9 +75,9 @@ class FSFile { * @return string|bool TS_MW timestamp or false on failure */ public function getTimestamp() { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $timestamp = filemtime( $this->path ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $timestamp !== false ) { $timestamp = wfTimestamp( TS_MW, $timestamp ); } @@ -200,13 +200,12 @@ class FSFile { public function getSha1Base36( $recache = false ) { if ( $this->sha1Base36 !== null && !$recache ) { - return $this->sha1Base36; } - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $this->sha1Base36 = sha1_file( $this->path ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $this->sha1Base36 !== false ) { $this->sha1Base36 = wfBaseConvert( $this->sha1Base36, 16, 36, 31 ); -- cgit v1.2.2