cvs: pear /HTML_QuickForm/QuickForm file.php
| From: | Bertrand Mansion | Date: | Wed, 29 May 2002 11:00:11 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm file.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4254@lists.php.net to get a copy of this message | ||
mansion Wed May 29 07:00:11 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm file.php
Log:
pass by reference fix
Index: pear/HTML_QuickForm/QuickForm/file.php
diff -u pear/HTML_QuickForm/QuickForm/file.php:1.5 pear/HTML_QuickForm/QuickForm/file.php:1.6
--- pear/HTML_QuickForm/QuickForm/file.php:1.5 Mon Apr 29 08:46:42 2002
+++ pear/HTML_QuickForm/QuickForm/file.php Wed May 29 07:00:11 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: file.php,v 1.5 2002/04/29 12:46:42 mansion Exp $
+// $Id: file.php,v 1.6 2002/05/29 11:00:11 mansion Exp $
require_once("HTML/QuickForm/input.php");
/**
@@ -118,9 +118,9 @@
$className = get_class($this);
switch ($event) {
case 'addElement':
- $caller->updateAttributes(array("method"=>"POST",
"enctype"=>"multipart/form-data"));
+ $caller->updateAttributes(array('method' => 'POST',
'enctype' => 'multipart/form-data'));
if (!$caller->elementExists('MAX_FILE_SIZE')) {
- $err = &$caller->addElement('hidden',
'MAX_FILE_SIZE', $caller->_maxFileSize);
+ $err = $caller->addElement('hidden', 'MAX_FILE_SIZE',
$caller->_maxFileSize);
if (PEAR::isError($err)) {
return $err;
}