mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c03e56137b
commit
4fd99b5490
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user