Switch to using $_SERVER variables from what appears to be deprecated super globals

This commit is contained in:
Edwin Smulders
2007-07-24 00:30:04 +00:00
committed by WineHQ
parent 54ebcc2af8
commit d0a45fe550
2 changed files with 4 additions and 4 deletions

View File

@@ -567,7 +567,7 @@ class testData{
echo '<br />',"\n"; // put a space after the test results table and the button echo '<br />',"\n"; // put a space after the test results table and the button
echo '<form method=get action="'.$PHP_SELF.'">'."\n"; echo '<form method=get action="'.$_SERVER['PHP_SELF'].'">'."\n";
echo "\t".'<input name="iVersionId" type=hidden value="',$this->iVersionId,'" />'."\n"; echo "\t".'<input name="iVersionId" type=hidden value="',$this->iVersionId,'" />'."\n";
if($rowsUsed >= $iDisplayLimit && !is_string($sShowAll)) if($rowsUsed >= $iDisplayLimit && !is_string($sShowAll))
echo "\t".'<input class="button" name="sShowAll" type=submit value="Show All Tests" />'."\n"; echo "\t".'<input class="button" name="sShowAll" type=submit value="Show All Tests" />'."\n";

View File

@@ -85,7 +85,7 @@ if($oObject->iId)
break; break;
case "edit": case "edit":
$oObject->display_entry_for_editing($REQUEST_URI, $sErrors); $oObject->display_entry_for_editing($_SERVER['REQUEST_URI'], $sErrors);
break; break;
case "showMoveChildren": case "showMoveChildren":
@@ -93,12 +93,12 @@ if($oObject->iId)
break; break;
default: default:
$oObject->view($REQUEST_URI); $oObject->view($_SERVER['REQUEST_URI']);
break; break;
} }
} else if ($aClean['sAction'] == "add") } else if ($aClean['sAction'] == "add")
{ {
$oObject->add_entry($REQUEST_URI, $sErrors); $oObject->add_entry($_SERVER['REQUEST_URI'], $sErrors);
} else } else
{ {
// if displaying a queue display the help for the given queue // if displaying a queue display the help for the given queue