From ceb45f9808780cfce58a5c814491d2890418c7be Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Sat, 29 Oct 2011 17:04:21 +1300 Subject: [PATCH] BUGFIX: Make default mysite/_config.php work when CMS module isnt installed --- mysite/_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysite/_config.php b/mysite/_config.php index 9a6665b..8bebc01 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -15,5 +15,5 @@ MySQLDatabase::set_connection_charset('utf8'); SSViewer::set_theme('blackcandy'); // enable nested URLs for this site (e.g. page/sub-page/) -SiteTree::enable_nested_urls(); +if(class_exists('SiteTree')) SiteTree::enable_nested_urls();