mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
a86b682146
commit
d4e01c9322
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue