dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a1c9e
)
Using wfSuppressWarnings() instead of the error suppression operator, to avoid the...
author
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:24:13 +0000
(10:24 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 10:24:13 +0000
(10:24 +0000)
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
e916f04
..
4baf0cf
100644
(file)
--- 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();
}
?>