Topic on Project:Support desk

No default image caption since update to mediawiki 1.16.4

2
Tamiimat (talkcontribs)

Since i updated to mediawiki 1.16.4 whenever i insert a image no default caption (or tooltip)is added anymore. Normally the filename was added as caption.

I even can reproduce this in this wiki version (guess 1.17.x)

No Image caption (aka tooltip)

I guess some default has changed, but i can't find anything pointing me into the right direction

Tamiimat (talkcontribs)

I found the issue myself, it's in includes/parser/Parser.php Following code change fixes the issue

--- includes/parser/Parser.php.orig     2011-04-22 13:09:23.000000000 +0200
+++ includes/parser/Parser.php  2011-04-22 13:07:29.000000000 +0200
@@ -4661,6 +4661,7 @@
                                        # No caption, fall back to using the filename for the
                                        # alt text
                                        $params['frame']['alt'] = $title->getText();
+                                       $caption = $params['frame']['alt'];
                                }
                        }
                        # Use the "caption" for the tooltip text

I'm unsure if this is the correct place to fix it. Anyway, should i open a bug ?

Reply to "No default image caption since update to mediawiki 1.16.4"