From ce801197c93f848ee094611ea823b8b22c43d719 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 23 Oct 2013 20:36:52 +0200 Subject: [PATCH] Pass language to File::getDescriptionText Follow-Up: Ifcae821a51f4207e7816e710d3b3857c7ed438b6 Change-Id: I8e13f672fd37319add1c090a5b2f38c45d18fda5 --- includes/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1