Merge "Prettify MessageCache::loadFromDB()-small query"
[lhc/web/wiklou.git] / includes / gallery / PackedOverlayImageGallery.php
index bebc39e..e1ee7fa 100644 (file)
@@ -25,9 +25,10 @@ class PackedOverlayImageGallery extends PackedImageGallery {
        /**
         * Add the wrapper html around the thumb's caption
         *
-        * @param String $galleryText The caption
-        * @param MediaTransformOutput|boolean $thumb The thumb this caption is for
+        * @param string $galleryText The caption
+        * @param MediaTransformOutput|bool $thumb The thumb this caption is for
         *   or false for bad image.
+        * @return string
         */
        protected function wrapGalleryText( $galleryText, $thumb ) {
 
@@ -39,7 +40,7 @@ class PackedOverlayImageGallery extends PackedImageGallery {
 
                # ATTENTION: The newline after <div class="gallerytext"> is needed to
                # accommodate htmltidy which in version 4.8.6 generated crackpot HTML
-               # in its absence, see: http://bugzilla.wikimedia.org/show_bug.cgi?id=1765
+               # in its absence, see: https://phabricator.wikimedia.org/T3765
                # -Ævar
 
                $thumbWidth = $this->getGBWidth( $thumb ) - $this->getThumbPadding() - $this->getGBPadding();
@@ -49,7 +50,7 @@ class PackedOverlayImageGallery extends PackedImageGallery {
 
                return "\n\t\t\t" . $outerWrapper . '<div class="gallerytext">' . "\n"
                        . $galleryText
-                       . "\n\t\t\t</div>";
+                       . "\n\t\t\t</div></div>";
        }
 }