From d47913d78f992cc6a387d77705926b75bdb3773d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 29 Mar 2011 18:06:17 +1300 Subject: [PATCH] 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 --- _config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_config.php b/_config.php index 768e561d8..4032b93c4 100755 --- a/_config.php +++ b/_config.php @@ -29,6 +29,10 @@ Director::addRules(10, array( 'dev' => 'DevelopmentAdmin', '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