Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -3281,16 +3281,16 @@ |
3282 | 3282 | $content = strtr($content, array('-{' => '-{', '}-' => '}-')); |
3283 | 3283 | $output = Xml::escapeTagsOnly( $content ); |
3284 | 3284 | break; |
| 3285 | + case 'gallery': |
| 3286 | + $output = $this->renderImageGallery( $content, $attributes ); |
| 3287 | + break; |
3285 | 3288 | case 'math': |
3286 | 3289 | if ( $this->mOptions->getUseTeX() ) { |
3287 | 3290 | $output = $wgContLang->armourMath( |
3288 | 3291 | MathRenderer::renderMath( $content, $attributes ) ); |
3289 | 3292 | break; |
3290 | 3293 | } |
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) */ |
3295 | 3295 | default: |
3296 | 3296 | if( isset( $this->mTagHooks[$name] ) ) { |
3297 | 3297 | # Workaround for PHP bug 35229 and similar |