mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Normalize image titles in cache to prevent duplicates."
This commit is contained in:
commit
8ad91a7255
|
@ -171,7 +171,7 @@ ve.ui.MWMediaSearchWidget.prototype.onMediaQueryDone = function ( source, data )
|
|||
}
|
||||
|
||||
for ( page in pages ) {
|
||||
title = pages[page].title;
|
||||
title = new mw.Title( pages[page].title ).getMainText();
|
||||
if ( !( title in this.titles ) ) {
|
||||
this.titles[title] = true;
|
||||
items.push(
|
||||
|
|
Loading…
Reference in a new issue