Using wfSuppressWarnings() instead of the error suppression operator, to avoid the...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:24:13 +0000 (10:24 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:24:13 +0000 (10:24 +0000)
languages/Language.php

index e916f04..4baf0cf 100644 (file)
@@ -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();
 
 }
 ?>