Merge image gallery fixlets from 1.4
[lhc/web/wiklou.git] / includes / Parser.php
index 9477b66..0e911d6 100644 (file)
@@ -3106,7 +3106,12 @@ class Parser
                        } else {
                                $label = '';
                        }
-                       $ig->add( Image::newFromTitle( $nt ), $label );
+                       
+                       # FIXME: Use the full wiki parser and add its links
+                       # to the page's links.
+                       $html = $this->mOptions->mSkin->formatComment( $label );
+                       
+                       $ig->add( Image::newFromTitle( $nt ), $html );
                        $wgLinkCache->addImageLinkObj( $nt );
                }
                return $ig->toHTML();