cvs: pearweb /public_html/bugs/include functions.inc

From: Date: Sat, 29 Mar 2008 23:31:48 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7420@lists.php.net to get a copy of this message
dufuz Sat Mar 29 23:31:48 2008 UTC Modified files: /pearweb/public_html/bugs/include functions.inc Log: The SITE constant used Killed couple of GLOBALS usages, for example in field() http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.172&r2=1.173&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.172 pearweb/public_html/bugs/include/functions.inc:1.173 --- pearweb/public_html/bugs/include/functions.inc:1.172 Wed Mar 26 21:38:55 2008 +++ pearweb/public_html/bugs/include/functions.inc Sat Mar 29 23:31:48 2008 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: functions.inc,v 1.172 2008/03/26 21:38:55 dufuz Exp $ + * @version $Id: functions.inc,v 1.173 2008/03/29 23:31:48 dufuz Exp $ */ @@ -146,8 +146,8 @@ * * @see clean(), escapeSQL(), txfield() */ -function field($n) { - return isset($_POST['in']) ? clean($_POST['in'][$n]) : clean($GLOBALS['bug'][$n]); +function field($n, $bug) { + return clean(isset($_POST['in']) ? $_POST['in'][$n] : $bug[$n]); } /**

« previous php.pear.core (#7420) next »