From: Tim Starling Date: Sat, 23 Oct 2004 10:24:13 +0000 (+0000) Subject: Using wfSuppressWarnings() instead of the error suppression operator, to avoid the... X-Git-Tag: 1.5.0alpha1~1485 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=ac7279aa6e5d94577501d110ddeb5249b93288ed;p=lhc%2Fweb%2Fwiklou.git Using wfSuppressWarnings() instead of the error suppression operator, to avoid the blank page syndrome --- 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(); } ?>