aboutsummaryrefslogtreecommitdiffstats
path: root/includes/StreamFile.php
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@gmail.com>2015-06-10 11:29:05 -0700
committerBryanDavis <bdavis@wikimedia.org>2015-06-11 18:49:29 +0000
commitf6e5079a6964b10deff40c3224957cab2474dde7 (patch)
treef729355ec37ffb7c4acaf9ce091d1c89ee5b9036 /includes/StreamFile.php
parentc403d4838dc8662d62902ced3713c1d9be6309cc (diff)
downloadmediawikicore-f6e5079a6964b10deff40c3224957cab2474dde7.tar.gz
mediawikicore-f6e5079a6964b10deff40c3224957cab2474dde7.zip
Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a separate library. All usages in core were replaced with the new functions, and the wf* global functions are marked as deprecated. Additionally, some uses of @ were replaced due to composer's autoloader being loaded even earlier. Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to mediawiki/vendor. Bug: T100923 Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
Diffstat (limited to 'includes/StreamFile.php')
-rw-r--r--includes/StreamFile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/StreamFile.php b/includes/StreamFile.php
index a7522ea2b5f7..bac4db65fba7 100644
--- a/includes/StreamFile.php
+++ b/includes/StreamFile.php
@@ -44,9 +44,9 @@ class StreamFile {
throw new MWException( __FUNCTION__ . " given storage path '$fname'." );
}
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$stat = stat( $fname );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
$res = self::prepareForStream( $fname, $stat, $headers, $sendErrors );
if ( $res == self::NOT_MODIFIED ) {