logo       

cvs: pear /HTML_QuickForm/QuickForm group.php: msg#00614

php.cvs.pear

Subject: cvs: pear /HTML_QuickForm/QuickForm group.php

mansion Fri Sep 27 07:49:37 2002 EDT

Modified files:
/pear/HTML_QuickForm/QuickForm group.php
Log:
Use $_POST and $_GET.


Index: pear/HTML_QuickForm/QuickForm/group.php
diff -u pear/HTML_QuickForm/QuickForm/group.php:1.6
pear/HTML_QuickForm/QuickForm/group.php:1.7
--- pear/HTML_QuickForm/QuickForm/group.php:1.6 Fri Sep 27 06:28:56 2002
+++ pear/HTML_QuickForm/QuickForm/group.php Fri Sep 27 07:49:37 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@xxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: group.php,v 1.6 2002/09/27 10:28:56 mansion Exp $
+// $Id: group.php,v 1.7 2002/09/27 11:49:37 mansion Exp $

require_once("HTML/QuickForm/element.php");

@@ -89,7 +89,7 @@
if (isset($elementLabel)) {
$this->setLabel($elementLabel);
}
- $vars = array_merge($GLOBALS['HTTP_GET_VARS'],
$GLOBALS['HTTP_POST_VARS']);
+ $vars = array_merge($_GET, $_POST);
if (isset($vars[$this->getName()])) {
if (is_string($vars[$this->getName()]) && get_magic_quotes_gpc()
== 1) {
$submitValue = stripslashes($vars[$this->getName()]);
@@ -321,7 +321,7 @@
$this->$className($arg[0], $arg[1], $arg[2], $arg[3]);
break;
case 'setDefault':
- $vars = array_merge($GLOBALS['HTTP_GET_VARS'],
$GLOBALS['HTTP_POST_VARS']);
+ $vars = array_merge($_GET, $_POST);
if (!isset($vars[$this->getName()])) {
$this->setValue($arg);
}



--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise