[21325] Fixing globals

Caeies <[email protected]> Wed, 08 Sep 2010 16:24:04 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21325
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21325
Author:   Caeies
Date:     2010-09-08 16:24:04 +0000 (Wed, 08 Sep 2010)
Log Message:
-----------
Fixing globals

Modified Paths:
--------------
    modules/projects/branches/branch_0_9_16/inc/class.uibilling.inc.php
    modules/projects/branches/branch_0_9_16/inc/class.uideliveries.inc.php
    modules/projects/branches/branch_0_9_16/inc/class.uiprojecthours.inc.php

Modified: modules/projects/branches/branch_0_9_16/inc/class.uibilling.inc.php
===================================================================
--- modules/projects/branches/branch_0_9_16/inc/class.uibilling.inc.php	2010-09-08 16:23:35 UTC (rev 21324)
+++ modules/projects/branches/branch_0_9_16/inc/class.uibilling.inc.php	2010-09-08 16:24:04 UTC (rev 21325)
@@ -488,7 +488,7 @@
 
 			if (! $Invoice)
 			{
-				$referer = $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
+				$referer = $GLOBALS['_SERVER']['HTTP_REFERER'] ? $GLOBALS['_SERVER']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
 			}
 
 			if (!$project_id)

Modified: modules/projects/branches/branch_0_9_16/inc/class.uideliveries.inc.php
===================================================================
--- modules/projects/branches/branch_0_9_16/inc/class.uideliveries.inc.php	2010-09-08 16:23:35 UTC (rev 21324)
+++ modules/projects/branches/branch_0_9_16/inc/class.uideliveries.inc.php	2010-09-08 16:24:04 UTC (rev 21325)
@@ -354,7 +354,7 @@
 
 			if (! $Delivery)
 			{
-				$referer = $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
+				$referer = $GLOBALS['_SERVER']['HTTP_REFERER'] ? $GLOBALS['_SERVER']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
 			}
 
 			if (!$project_id)

Modified: modules/projects/branches/branch_0_9_16/inc/class.uiprojecthours.inc.php
===================================================================
--- modules/projects/branches/branch_0_9_16/inc/class.uiprojecthours.inc.php	2010-09-08 16:23:35 UTC (rev 21324)
+++ modules/projects/branches/branch_0_9_16/inc/class.uiprojecthours.inc.php	2010-09-08 16:24:04 UTC (rev 21325)
@@ -429,7 +429,7 @@
 
 			if (! $values['submit'])
 			{
-				$referer = $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
+				$referer = $GLOBALS['_SERVER']['HTTP_REFERER'] ? $GLOBALS['_SERVER']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
 			}
 
 			if ($values['submit'])
@@ -618,7 +618,7 @@
 			//$referer	= get_var('referer',array('POST'));
 			$project_id	= get_var('project_id',array('GET'));
 
-			$referer = $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
+			$referer = $GLOBALS['_SERVER']['HTTP_REFERER'] ? $GLOBALS['_SERVER']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
 
 			if (!$hours_id)
 			{