mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed the dev/tests and dev/tests/(classname) URLs
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@54631 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
edeb7cf4cc
commit
a93e0dc8ef
2
main.php
2
main.php
@ -129,7 +129,7 @@ Director::addRules(10, array(
|
||||
'' => 'RootURLController',
|
||||
'sitemap.xml' => 'GoogleSitemap',
|
||||
'api/v1/$ClassName/$ID' => 'RestfulServer',
|
||||
'dev/$Action' => 'DevelopmentAdmin'
|
||||
'dev/$Action/$NestedAction' => 'DevelopmentAdmin'
|
||||
));
|
||||
|
||||
Director::addRules(1, array(
|
||||
|
@ -25,7 +25,11 @@ HTML;
|
||||
}
|
||||
|
||||
function tests() {
|
||||
return new TestRunner();
|
||||
if(isset($this->urlParams['NestedAction'])) {
|
||||
Director::redirect("TestRunner/only/" . $this->urlParams['NestedAction']);
|
||||
} else {
|
||||
Director::redirect("TestRunner/");
|
||||
}
|
||||
}
|
||||
|
||||
function tasks($request) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user