Removing the need for REQUEST_URI for the show passes link

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6804 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
joelmoss 2008-05-11 18:27:39 +00:00
parent a86b682146
commit d4e01c9322

View file

@ -433,6 +433,12 @@ if (function_exists('caketestsgetreporter')) {
} else {
$show = '?show=groups';
}
$query = '?group='.$_GET['group'];
if (isset($_GET['app'])) {
$query .= '&app=true';
} elseif (isset($_GET['plugin'])) {
$query .= '&plugin=' . $_GET['plugin'];
}
}
if (isset($_GET['case'])) {
if (isset($_GET['app'])) {
@ -442,8 +448,14 @@ if (function_exists('caketestsgetreporter')) {
} else {
$show = '?show=cases';
}
$query = '?case='.$_GET['case'];
if (isset($_GET['app'])) {
$query .= '&app=true';
} elseif (isset($_GET['plugin'])) {
$query .= '&plugin=' . $_GET['plugin'];
}
echo "<p><a href='" . RUN_TEST_LINK . $show . "'>Run more tests</a> | <a href='" . $_SERVER['REQUEST_URI'] . "&show_passes=1'>Show Passes</a></p>\n";
}
echo "<p><a href='" . RUN_TEST_LINK . $show . "'>Run more tests</a> | <a href='" . RUN_TEST_LINK . $query . "&show_passes=1'>Show Passes</a></p>\n";
break;
}
}