cvs: pear /HTML_QuickForm QuickForm.php
| From: | Bertrand Mansion | Date: | Mon, 13 May 2002 14:39:18 +0000 |
| Subject: | cvs: pear /HTML_QuickForm QuickForm.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3802@lists.php.net to get a copy of this message | ||
mansion Mon May 13 10:39:18 2002 EDT
Modified files:
/pear/HTML_QuickForm QuickForm.php
Log:
Need to strtolower here because strtolower everywhere else.
Thanks to Jason Rust for the fix.
Index: pear/HTML_QuickForm/QuickForm.php
diff -u pear/HTML_QuickForm/QuickForm.php:1.13 pear/HTML_QuickForm/QuickForm.php:1.14
--- pear/HTML_QuickForm/QuickForm.php:1.13 Tue Apr 16 04:51:13 2002
+++ pear/HTML_QuickForm/QuickForm.php Mon May 13 10:39:18 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: QuickForm.php,v 1.13 2002/04/16 08:51:13 mansion Exp $
+// $Id: QuickForm.php,v 1.14 2002/05/13 14:39:18 mansion Exp $
require_once("PEAR.php");
require_once("HTML/Common.php");
@@ -324,7 +324,7 @@
*/
function registerElementType($typeName, $include, $className)
{
- $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][$typeName] = array($include,
$className);
+ $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][strtolower($typeName)] = array($include,
$className);
} // end func registerElementType
// }}}