X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImageGallery.php;h=492a3e06e9ca3e370dffb44908e439d4ae27caa0;hb=511ae2aca26da14c0202154731db059e80c750e7;hp=150fe0381ebbfcdf66a6938ccc112840a7601133;hpb=79d5225c0e864482269e2315f47b899697681e52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 150fe0381e..492a3e06e9 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -2,15 +2,12 @@ if ( ! defined( 'MEDIAWIKI' ) ) die( 1 ); -/** - */ - /** * Image gallery * * Add images to the gallery using add(), then render that list to HTML using toHTML(). * - * @addtogroup Media + * @ingroup Media */ class ImageGallery { @@ -242,8 +239,8 @@ class ImageGallery $text = $pair[1]; # Give extensions a chance to select the file revision for us - $time = false; - wfRunHooks( 'BeforeGalleryFindFile', array( &$this, &$nt, &$time ) ); + $time = $descQuery = false; + wfRunHooks( 'BeforeGalleryFindFile', array( &$this, &$nt, &$time, &$descQuery ) ); $img = wfFindFile( $nt, $time ); @@ -268,7 +265,7 @@ class ImageGallery # handlers since they may emit block-level elements as opposed to simple tags. # ref http://css-discuss.incutio.com/?page=CenteringBlockElement . '
' - . $thumb->toHtml( array( 'desc-link' => true ) ) . '
'; + . $thumb->toHtml( array( 'desc-link' => true, 'desc-query' => $descQuery ) ) . ''; // Call parser transform hook if ( $this->mParser && $img->getHandler() ) {