Merge "Normalize image titles in cache to prevent duplicates."

This commit is contained in:
jenkins-bot 2013-07-11 21:37:36 +00:00 committed by Gerrit Code Review
commit 8ad91a7255

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(