X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fgallery%2FTraditionalImageGallery.php;h=5ede631aa34cc9dd56a47b301b277b7f56759fc2;hb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;hp=a87322d46d7084fec0cffb6323496f52fc8e9f7c;hpb=998b8afae92ed9621eaad184e6c05c0e18859342;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php index a87322d46d..5ede631aa3 100644 --- a/includes/gallery/TraditionalImageGallery.php +++ b/includes/gallery/TraditionalImageGallery.php @@ -170,8 +170,8 @@ class TraditionalImageGallery extends ImageGalleryBase { } // @todo Code is incomplete. - // $linkTarget = Title::newFromText( $wgContLang->getNsText( MWNamespace::getUser() ) . - // ":{$ut}" ); + // $linkTarget = Title::newFromText( MediaWikiServices::getInstance()-> + // getContentLanguage()->getNsText( MWNamespace::getUser() ) . ":{$ut}" ); // $ul = Linker::link( $linkTarget, $ut ); $meta = []; @@ -226,7 +226,7 @@ class TraditionalImageGallery extends ImageGalleryBase { $nt, htmlspecialchars( is_int( $this->getCaptionLength() ) ? - $lang->truncate( $nt->getText(), $this->getCaptionLength() ) : + $lang->truncateForVisual( $nt->getText(), $this->getCaptionLength() ) : $nt->getText() ), [ @@ -286,7 +286,7 @@ class TraditionalImageGallery extends ImageGalleryBase { } /** - * Length to truncate filename to in caption when using "showfilename" (if int). + * Length (in characters) to truncate filename to in caption when using "showfilename" (if int). * A value of 'true' will truncate the filename to one line using CSS, while * 'false' will disable truncating. *