Index: trunk/phase3/includes/Parser.php |
— | — | @@ -441,7 +441,8 @@ |
442 | 442 | $content = strtr( $content, $commentState ); |
443 | 443 | } |
444 | 444 | if( $render ) { |
445 | | - switch( $element ) { |
| 445 | + $tagName = strtolower( $element ); |
| 446 | + switch( $tagName ) { |
446 | 447 | case 'html': |
447 | 448 | if( $wgRawHtml ) { |
448 | 449 | $output = $content; |
— | — | @@ -463,7 +464,6 @@ |
464 | 465 | $output = $this->renderImageGallery( $content ); |
465 | 466 | break; |
466 | 467 | default: |
467 | | - $tagName = strtolower( $element ); |
468 | 468 | if( isset( $this->mTagHooks[$tagName] ) ) { |
469 | 469 | $output = call_user_func_array( $this->mTagHooks[$tagName], |
470 | 470 | array( $content, $params, $this ) ); |