r5321 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r5320
|
r5321
|
r5322
>
Date:
10:30, 20 September 2004
Author:
timstarling
Status:
old
Tags:
Comment:
suppress warnings before calling $wgLang->getMessage(), because many language files generate notices
Modified paths:
/trunk/phase3/includes/MessageCache.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/MessageCache.php
—
—
@@ -233,12 +233,16 @@
234
234
235
235
# Try the array in $wgLang
236
236
if ( !$message ) {
237
+ wfSuppressWarnings();
237
238
$message = $wgLang->getMessage( $key );
239
+ wfRestoreWarnings();
238
240
}
239
241
240
242
# Try the English array
241
243
if ( !$message && $wgLanguageCode != 'en' ) {
244
+ wfSuppressWarnings();
242
245
$message = Language::getMessage( $key );
246
+ wfRestoreWarnings();
243
247
}
244
248
245
249
# Final fallback
Status & tagging log
01:56, 13 October 2010
😂
(
talk
|
contribs
)
changed the
status
of r5321
[
removed:
new
added:
old]