Make MWMediaSearchDialog not ignore empty scriptDirUrl

For wikis that are installed in root directory, the API parameter
'scriptDirUrl' is an empty string. This change makes sure it is not
ignored.

Change-Id: Ib58adf76c184c32c0cdbb9dba31db1e4028fa383
This commit is contained in:
Moriel Schottlender 2014-02-10 13:42:05 -05:00
parent a498cb19f8
commit bee4e5323f

View file

@ -107,7 +107,7 @@ ve.ui.MWMediaSearchWidget.prototype.queryMediaSources = function () {
source = this.sources[i];
// If we don't have either 'apiurl' or 'scriptDirUrl'
// the source is invalid, and we will skip it
if ( source.apiurl || source.scriptDirUrl ) {
if ( source.apiurl || source.scriptDirUrl !== undefined ) {
if ( source.request ) {
source.request.abort();
}