mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Added default redirection of /admin to /admin/security in sapphire/admin/_config.php to provide a good default if 'cms' module (and CMSMain) is not installed
This commit is contained in:
parent
0d39a888a1
commit
d47913d78f
@ -29,6 +29,10 @@ Director::addRules(10, array(
|
|||||||
'dev' => 'DevelopmentAdmin',
|
'dev' => 'DevelopmentAdmin',
|
||||||
'interactive' => 'SapphireREPL',
|
'interactive' => 'SapphireREPL',
|
||||||
));
|
));
|
||||||
|
// Add default routing unless 'cms' module is present (which overrules this with a CMSMain controller)
|
||||||
|
Director::addRules(20, array(
|
||||||
|
'admin//$action/$ID/$OtherID' => '->admin/security'
|
||||||
|
));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHP 5.2 introduced a conflict with the Datetime field type, which was renamed to SSDatetime. This was later renamed
|
* PHP 5.2 introduced a conflict with the Datetime field type, which was renamed to SSDatetime. This was later renamed
|
||||||
|
Loading…
Reference in New Issue
Block a user