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 @@
6262 }
6363
6464 function text( s ) {
65 - return s.replace( /_/g, ' ' );
 65+ if ( s != null ) {
 66+ return s.replace( /_/g, ' ' );
 67+ } else {
 68+ return '';
 69+ }
6670 }
6771
6872 /**

Status & tagging log