mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #4239: Check that project folder exists and throw a more helpful warning.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@80212 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6bcabcbe46
commit
f6c8f6bd54
@ -212,7 +212,8 @@ class ManifestBuilder {
|
||||
|
||||
// Ensure that any custom templates get favoured
|
||||
if(!$project) user_error("\$project isn't set", E_USER_WARNING);
|
||||
ManifestBuilder::getTemplateManifest($baseDir, $project, $excludedFolders, $templateManifest, $cssManifest);
|
||||
else if(!file_exists("$baseDir/$project")) user_error("\$project is set to '$project' but no such folder exists.", E_USER_WARNING);
|
||||
else ManifestBuilder::getTemplateManifest($baseDir, $project, $excludedFolders, $templateManifest, $cssManifest);
|
||||
|
||||
$manifestInfo["globals"]["_CLASS_MANIFEST"] = $classManifest;
|
||||
$manifestInfo["globals"]["_ALL_CLASSES"] = $allClasses;
|
||||
|
Loading…
Reference in New Issue
Block a user