mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Don't fail text collection for modules without any matching PHP files (only _config.php)
This commit is contained in:
parent
7b18d9d0da
commit
0597e914ff
@ -162,6 +162,7 @@ class i18nTextCollector extends Object {
|
||||
//Debug::message("Processing Module '{$module}'", false);
|
||||
|
||||
// Search for calls in code files if these exists
|
||||
$fileList = array();
|
||||
if(is_dir("$this->basePath/$module/code")) {
|
||||
$fileList = $this->getFilesRecursive("$this->basePath/$module/code");
|
||||
} else if($module == FRAMEWORK_DIR || substr($module, 0, 7) == 'themes/') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user