Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91426


Change subject: Pass language to File::getDescriptionText
......................................................................

Pass language to File::getDescriptionText

Follow-Up: Ifcae821a51f4207e7816e710d3b3857c7ed438b6
Change-Id: I8e13f672fd37319add1c090a5b2f38c45d18fda5
---
M includes/ImagePage.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/26/91426/1

diff --git a/includes/ImagePage.php b/includes/ImagePage.php
index 7ea06b0..515f146 100644
--- a/includes/ImagePage.php
+++ b/includes/ImagePage.php
@@ -600,7 +600,7 @@
                $this->loadFile();
 
                $descUrl = $this->mPage->getFile()->getDescriptionUrl();
-               $descText = $this->mPage->getFile()->getDescriptionText();
+               $descText = $this->mPage->getFile()->getDescriptionText( 
$this->getContext()->getLanguage() );
 
                /* Add canonical to head if there is no local page for this 
shared file */
                if ( $descUrl && $this->mPage->getID() == 0 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/91426
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e13f672fd37319add1c090a5b2f38c45d18fda5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to