X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fgallery%2FTraditionalImageGallery.php;h=cd6aab0f88d53a7153982b5a70802fa9d0c75d53;hb=1054deece9c03a448f03cf3fd03493458d9bee09;hp=a0059cea1fcc76d265451cb7e4dc8ce8fa279fb2;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php index a0059cea1f..cd6aab0f88 100644 --- a/includes/gallery/TraditionalImageGallery.php +++ b/includes/gallery/TraditionalImageGallery.php @@ -191,29 +191,21 @@ class TraditionalImageGallery extends ImageGalleryBase { } $textlink = $this->mShowFilename ? - // Preloaded into LinkCache above - Linker::linkKnown( - $nt, - htmlspecialchars( - $this->mCaptionLength !== true ? - $lang->truncate( $nt->getText(), $this->mCaptionLength ) : - $nt->getText() - ), - [ - 'class' => 'galleryfilename' . - ( $this->mCaptionLength === true ? ' galleryfilename-truncate' : '' ) - ] - ) . "\n" : + $this->getCaptionHtml( $nt, $lang ) : ''; $galleryText = $textlink . $text . $meta; $galleryText = $this->wrapGalleryText( $galleryText, $thumb ); + $gbWidth = $this->getGBWidth( $thumb ) . 'px'; + if ( $this->getGBWidthOverwrite( $thumb ) ) { + $gbWidth = $this->getGBWidthOverwrite( $thumb ); + } # Weird double wrapping (the extra div inside the li) needed due to FF2 bug # Can be safely removed if FF2 falls completely out of existence $output .= "\n\t\t" . '