r94455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94454‎ | r94455 | r94456 >
Date:13:20, 14 August 2011
Author:yaron
Status:deferred
Tags:
Comment:
Made parameters in {{{info}}} tag case-insensitive - patch from Peter Ellis
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -1192,7 +1192,8 @@
11931193 // TODO: Generate an error message if this is included more than once
11941194 foreach ( array_slice( $tag_components, 1 ) as $component ) {
11951195 $sub_components = array_map( 'trim', explode( '=', $component, 2 ) );
1196 - $tag = $sub_components[0];
 1196+ // Tag names are case-insensitive
 1197+ $tag = strtolower( $sub_components[0] );
11971198 if ( $tag == 'create title' || $tag == 'add title' ) {
11981199 // Handle this only if
11991200 // we're adding a page.