r58040 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58039‎ | r58040 | r58041 >
Date:22:07, 22 October 2009
Author:demon
Status:ok
Tags:
Comment:
Fix r57997 and r58039 for realz this time
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -3281,16 +3281,16 @@
32823282 $content = strtr($content, array('-{' => '-{', '}-' => '}-'));
32833283 $output = Xml::escapeTagsOnly( $content );
32843284 break;
 3285+ case 'gallery':
 3286+ $output = $this->renderImageGallery( $content, $attributes );
 3287+ break;
32853288 case 'math':
32863289 if ( $this->mOptions->getUseTeX() ) {
32873290 $output = $wgContLang->armourMath(
32883291 MathRenderer::renderMath( $content, $attributes ) );
32893292 break;
32903293 }
3291 - /* else let a tag hook handle it (bug 21222) */
3292 - case 'gallery':
3293 - $output = $this->renderImageGallery( $content, $attributes );
3294 - break;
 3294+ /* else let a tag hook handle it (bug 21222) */
32953295 default:
32963296 if( isset( $this->mTagHooks[$name] ) ) {
32973297 # Workaround for PHP bug 35229 and similar

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57997(bug 21222) Free <math> tag if not using it. Patch by Platonides.demon11:40, 22 October 2009
r58039Fix retarded mistake in 57997, move break to within the if block or it defeat...demon22:01, 22 October 2009

Status & tagging log