Switch to using $_SERVER variables from what appears to be deprecated super globals
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user