mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-15 05:56:25 +02:00
BUGFIX Fixed ManifestBuilder::get_themes() not to assume an existing themes/ folder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98537 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7cc3efa898
commit
0532bd92ae
@ -159,6 +159,8 @@ class ManifestBuilder {
|
|||||||
// If no base directory specified, the default is the project root
|
// If no base directory specified, the default is the project root
|
||||||
if(!$baseDir) $baseDir = BASE_PATH . DIRECTORY_SEPARATOR . THEMES_DIR;
|
if(!$baseDir) $baseDir = BASE_PATH . DIRECTORY_SEPARATOR . THEMES_DIR;
|
||||||
$themes = array();
|
$themes = array();
|
||||||
|
if(!file_exists($baseDir)) return $themes;
|
||||||
|
|
||||||
$handle = opendir($baseDir);
|
$handle = opendir($baseDir);
|
||||||
if($handle) {
|
if($handle) {
|
||||||
while(false !== ($file = readdir($handle))) {
|
while(false !== ($file = readdir($handle))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user