From 624b63ebb1abdff123ced8290fd3b3d1bff6eab4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Apr 2010 02:19:10 +0000 Subject: [PATCH] BUGFIX Fixed ManifestBuilder::get_themes() not to assume an existing themes/ folder (from r98537) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102765 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/ManifestBuilder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/ManifestBuilder.php b/core/ManifestBuilder.php index c413f37d2..fea2e2409 100644 --- a/core/ManifestBuilder.php +++ b/core/ManifestBuilder.php @@ -159,6 +159,8 @@ class ManifestBuilder { // If no base directory specified, the default is the project root if(!$baseDir) $baseDir = BASE_PATH . DIRECTORY_SEPARATOR . THEMES_DIR; $themes = array(); + if(!file_exists($baseDir)) return $themes; + $handle = opendir($baseDir); if($handle) { while(false !== ($file = readdir($handle))) { @@ -591,4 +593,4 @@ class ManifestBuilder { } } -?> \ No newline at end of file +?>