mansion Fri Sep 27 07:49:46 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm radio.php
Log:
Use $_POST and $_GET.
Index: pear/HTML_QuickForm/QuickForm/radio.php
diff -u pear/HTML_QuickForm/QuickForm/radio.php:1.6
pear/HTML_QuickForm/QuickForm/radio.php:1.7
--- pear/HTML_QuickForm/QuickForm/radio.php:1.6 Tue Jun 4 20:07:11 2002
+++ pear/HTML_QuickForm/QuickForm/radio.php Fri Sep 27 07:49:46 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@xxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: radio.php,v 1.6 2002/06/05 00:07:11 jrust Exp $
+// $Id: radio.php,v 1.7 2002/09/27 11:49:46 mansion Exp $
require_once("HTML/QuickForm/input.php");
@@ -72,7 +72,7 @@
$this->_persistantFreeze = true;
$this->setType('radio');
$this->_text = $text;
- $vars = array_merge($GLOBALS['HTTP_GET_VARS'],
$GLOBALS['HTTP_POST_VARS']);
+ $vars = array_merge($_GET, $_POST);
if (isset($vars[$this->getName()]) && $vars[$this->getName()] ==
$this->getValue()) {
$this->setChecked(true);
}
@@ -208,7 +208,7 @@
$this->$className($arg[0], $arg[1], $arg[2], $arg[3], $arg[4]);
break;
case 'setDefault':
- $vars = array_merge($GLOBALS['HTTP_GET_VARS'],
$GLOBALS['HTTP_POST_VARS']);
+ $vars = array_merge($_GET, $_POST);
if (!isset($vars[$this->getName()])) {
if ($arg == $this->getValue()) {
$this->setChecked(true);
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|