r84267 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84266‎ | r84267 | r84268 >
Date:21:13, 18 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fix for 'year' input
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormInputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php
@@ -300,12 +300,12 @@
301301 // Use a special ID for the free text field, for FCK's needs.
302302 $input_id = $input_name == "free_text" ? "free_text" : "input_$sfgFieldNum";
303303
304 - if ( array_key_exists( 'rows', $other_args ) ) {
 304+ if ( array_key_exists( 'rows', $other_args ) ) {
305305 $rows = $other_args['rows'];
306306 } else {
307307 $rows = 5;
308308 }
309 - if ( array_key_exists( 'cols', $other_args ) ) {
 309+ if ( array_key_exists( 'cols', $other_args ) ) {
310310 $cols = $other_args['cols'];
311311 } else {
312312 $cols = 80;
@@ -982,12 +982,12 @@
983983 $className .= " " . $other_args['class'];
984984 $input_id = "input_" . $sfgFieldNum;
985985
986 - if ( array_key_exists( 'rows', $other_args ) ) {
 986+ if ( array_key_exists( 'rows', $other_args ) ) {
987987 $rows = $other_args['rows'];
988988 } else {
989989 $rows = 5;
990990 }
991 - if ( array_key_exists( 'cols', $other_args ) ) {
 991+ if ( array_key_exists( 'cols', $other_args ) ) {
992992 $cols = $other_args['cols'];
993993 } else {
994994 $cols = 80;
@@ -1347,6 +1347,14 @@
13481348 return array( '_dat' );
13491349 }
13501350
 1351+ public static function getDefaultPropTypeLists() {
 1352+ return array();
 1353+ }
 1354+
 1355+ public static function getOtherPropTypeListsHandled() {
 1356+ return array();
 1357+ }
 1358+
13511359 public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) {
13521360 $other_args['size'] = 4;
13531361 return parent::getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args );