logo       

cvs: pear /HTML_QuickForm/QuickForm element.php: msg#00612

php.cvs.pear

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

mansion Fri Sep 27 07:33:42 2002 EDT

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


Index: pear/HTML_QuickForm/QuickForm/element.php
diff -u pear/HTML_QuickForm/QuickForm/element.php:1.9
pear/HTML_QuickForm/QuickForm/element.php:1.10
--- pear/HTML_QuickForm/QuickForm/element.php:1.9 Wed Aug 28 09:55:30 2002
+++ pear/HTML_QuickForm/QuickForm/element.php Fri Sep 27 07:33:42 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@xxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: element.php,v 1.9 2002/08/28 13:55:30 adaniel Exp $
+// $Id: element.php,v 1.10 2002/09/27 11:33:42 mansion Exp $

require_once('HTML/Common.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()]);
@@ -354,7 +354,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()])) {
$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