From: Chad Horohoe Date: Thu, 22 Oct 2009 22:07:05 +0000 (+0000) Subject: Fix r57997 and r58039 for realz this time X-Git-Tag: 1.31.0-rc.0~39163 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=395eb8c5c63f3314a3eb4551adc7b15e22edc072;p=lhc%2Fweb%2Fwiklou.git Fix r57997 and r58039 for realz this time --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index e398a8566c..7420b9c03b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3281,16 +3281,16 @@ class Parser $content = strtr($content, array('-{' => '-{', '}-' => '}-')); $output = Xml::escapeTagsOnly( $content ); break; + case 'gallery': + $output = $this->renderImageGallery( $content, $attributes ); + break; case 'math': if ( $this->mOptions->getUseTeX() ) { $output = $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes ) ); break; } - /* else let a tag hook handle it (bug 21222) */ - case 'gallery': - $output = $this->renderImageGallery( $content, $attributes ); - break; + /* else let a tag hook handle it (bug 21222) */ default: if( isset( $this->mTagHooks[$name] ) ) { # Workaround for PHP bug 35229 and similar