981 bytes added
, 13:46, 29 January 2011
FCKeditor as standard removes the captions to all images, this is a problem with how it interacts with mediawiki. The workaround is to stop mediawiki stripping captions when theya re duplicated. The only downside to this is that screen readers will read the captions to images twice.
=== Parser.php changes ===
<code>Parser.php</code> is located in <code>/includes/parser/</code>. The following lines need to be added at line 4647 i.e. between
#Line 4646 <font color="green"># meter for BC; ...</font>
<hr>
<syntaxhighlight lang="php">if( $caption !== ' ' && !isset( $params['frame']['alt']) && isset($params['frame']['title'])
&& !isset( $params['frame']['framed'] )
&& !isset( $params['frame']['thumbnail'] )
&& !isset( $params['frame']['manualthumb'] ) ) {
$params['frame']['alt'] = $params['frame']['title'];
}</syntaxhighlight>
<hr>
<syntaxhighlight lang="php">if ( $imageIsFramed ) { # Framed image
</syntaxhighlight>