MINOR Avoid failing CI because of missing doc paths

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@110414 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-09-03 01:37:55 +00:00
parent ed3edcfbb4
commit a1b89523ce
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ if(!$isRunningTest) {
}
DocumentationService::set_automatic_registration(false);
DocumentationService::register("cms", realpath("../src/github/master/cms/docs/"), '2.4');
try{
DocumentationService::register("cms", realpath("../src/github/master/cms/docs/"), '2.4');
} catch(InvalidArgumentException $e) {} // Silence if path is not found (for CI environment)
// We want this to be reviewed by the whole community
BasicAuth::protect_entire_site(false);