Moved director rules from main.php into _config.php so that they work with cli-script

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@54637 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-05-15 08:45:46 +00:00
parent c03e56137b
commit 4fd99b5490
1 changed files with 0 additions and 10 deletions

View File

@ -100,16 +100,6 @@ if(isset($_GET['debugmanifest'])) Debug::show(file_get_contents(MANIFEST_FILE));
if(!isset(Director::$environment_type)) Director::set_environment_type($envType);
// Default director
Director::addRules(10, array(
'Security/$Action' => 'Security',
'db/$Action' => 'DatabaseAdmin',
'$Controller/$Action/$ID/$OtherID' => '*',
'images/$Action/$Class/$ID/$Field' => 'Image_Uploader',
'' => '->home/',
'$URLSegment/$Action/$ID/$OtherID' => 'ModelAsController',
));
// Load error handlers
Debug::loadErrorHandlers();