mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Normalize image titles in cache to prevent duplicates.
Bug: 50158 Change-Id: Ic86e063086917f739f53b4374b29f77bffd4ac1a
This commit is contained in:
parent
6b61c53909
commit
b61be39686
|
@ -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