mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
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:
parent
a498cb19f8
commit
bee4e5323f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue