From ac7279aa6e5d94577501d110ddeb5249b93288ed Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 23 Oct 2004 10:24:13 +0000 Subject: [PATCH] Using wfSuppressWarnings() instead of the error suppression operator, to avoid the blank page syndrome --- languages/Language.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/languages/Language.php b/languages/Language.php index e916f045e8..4baf0cfd1d 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2195,7 +2195,9 @@ class Language { } # This should fail gracefully if there's not a localization available -@include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' ); +wfSuppressWarnings(); +include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' ); +wfRestoreWarnings(); } ?> -- 2.20.1