Normalize image titles in cache to prevent duplicates.

Bug: 50158
Change-Id: Ic86e063086917f739f53b4374b29f77bffd4ac1a
This commit is contained in:
Rob Moen 2013-07-11 10:11:24 -07:00
parent 6b61c53909
commit b61be39686

View file

@ -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(