From: umherirrender Date: Wed, 23 Oct 2013 18:36:52 +0000 (+0200) Subject: Pass language to File::getDescriptionText X-Git-Tag: 1.31.0-rc.0~18398 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=ce801197c93f848ee094611ea823b8b22c43d719;p=lhc%2Fweb%2Fwiklou.git Pass language to File::getDescriptionText Follow-Up: Ifcae821a51f4207e7816e710d3b3857c7ed438b6 Change-Id: I8e13f672fd37319add1c090a5b2f38c45d18fda5 --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 7ea06b0e85..515f146e56 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -600,7 +600,7 @@ EOT $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 ) {