From 26d001ac6f4fa2df96cc51f8dbdcec3ba9b2b728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Thu, 6 Feb 2014 00:50:43 +0000 Subject: [PATCH] Fix repoinfo loading bug Change-Id: I21741a60b88f1e34faf30ef591f3e44ff4703d94 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/190 --- MultimediaViewer.php | 1 + resources/mmv/mmv.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MultimediaViewer.php b/MultimediaViewer.php index 6e07f1bcc..cf36fe363 100644 --- a/MultimediaViewer.php +++ b/MultimediaViewer.php @@ -237,6 +237,7 @@ call_user_func( function() { 'mmv.lightboximage', 'jquery.fullscreen', 'jquery.throttle.debounce', + 'mediawiki.api', 'mediawiki.Uri', 'mediawiki.Title', 'jquery.ui.dialog', diff --git a/resources/mmv/mmv.js b/resources/mmv/mmv.js index 9d8f93062..2d6020992 100755 --- a/resources/mmv/mmv.js +++ b/resources/mmv/mmv.js @@ -652,7 +652,7 @@ mdpid = this.profileStart( 'metadata-fetch' ); this.fetchImageInfoAndFileUsageInfo( image.filePageTitle ).then( function ( imageData, repoInfo, targetWidth, requestedWidth, localUsage, globalUsage ) { - var repoData = mw.mmv.model.Repo.newFromRepoInfo( repoInfo[imageData.repo] ); + var repoData = repoInfo[imageData.repo]; viewer.profileEnd( mdpid );