From a1b89523ce683feb17cf05d38f567f2f1df16ca7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 3 Sep 2010 01:37:55 +0000 Subject: [PATCH] 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 --- mysite/_config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysite/_config.php b/mysite/_config.php index eccacb8..5c916bc 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -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);