r86377 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86376‎ | r86377 | r86378 >
Date:06:43, 19 April 2011
Author:kaldari
Status:ok
Tags:
Comment:
protect against feedback page being set to empty string
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -577,7 +577,7 @@
578578 $j( '#mwe-first-spinner' ).remove();
579579
580580 // feedback request
581 - if ( mw.isDefined( mw.UploadWizard.config['feedbackPage'] ) ) {
 581+ if ( mw.isDefined( mw.UploadWizard.config['feedbackPage'] ) && mw.UploadWizard.config['feedbackPage'] != '' ) {
582582 var feedback = new mw.Feedback( _this.api,
583583 new mw.Title( mw.UploadWizard.config['feedbackPage'] ) );
584584 $j( '#contentSub' )

Status & tagging log