Pass language to File::getDescriptionText
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 23 Oct 2013 18:36:52 +0000 (20:36 +0200)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 25 Oct 2013 00:04:12 +0000 (00:04 +0000)
Follow-Up: Ifcae821a51f4207e7816e710d3b3857c7ed438b6
Change-Id: I8e13f672fd37319add1c090a5b2f38c45d18fda5

includes/ImagePage.php

index 7ea06b0..515f146 100644 (file)
@@ -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 ) {