r14519 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14518‎ | r14519 | r14520 >
Date:08:31, 1 June 2006
Author:brion
Status:old
Tags:
Comment:
Regression with funny spellings of <matH>
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -441,7 +441,8 @@
442442 $content = strtr( $content, $commentState );
443443 }
444444 if( $render ) {
445 - switch( $element ) {
 445+ $tagName = strtolower( $element );
 446+ switch( $tagName ) {
446447 case 'html':
447448 if( $wgRawHtml ) {
448449 $output = $content;
@@ -463,7 +464,6 @@
464465 $output = $this->renderImageGallery( $content );
465466 break;
466467 default:
467 - $tagName = strtolower( $element );
468468 if( isset( $this->mTagHooks[$tagName] ) ) {
469469 $output = call_user_func_array( $this->mTagHooks[$tagName],
470470 array( $content, $params, $this ) );

Status & tagging log