r86376 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r86375
|
r86376
|
r86377
>
Date:
06:41, 19 April 2011
Author:
kaldari
Status:
ok
Tags:
Comment:
protect against null case
Modified paths:
/trunk/extensions/UploadWizard/resources/mw.Title.js
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/UploadWizard/resources/mw.Title.js
—
—
@@ -61,7 +61,11 @@
62
62
}
63
63
64
64
function text( s ) {
65
- return s.replace( /_/g, ' ' );
65
+ if ( s != null ) {
66
+ return s.replace( /_/g, ' ' );
67
+ } else {
68
+ return '';
69
+ }
66
70
}
67
71
68
72
/**
Status & tagging log
16:23, 26 April 2011
NeilK
(
talk
|
contribs
)
changed the
status
of r86376
[
removed:
new
added:
ok]