Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 63e7d9b

Browse files
author
Jamie Snape
committed
Check private modules folder actually exists
1 parent 4b72160 commit 63e7d9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/Bootstrap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ protected function _initFrontModules()
182182
$this->bootstrap('frontController');
183183
$front = $this->getResource('frontController');
184184
$front->addModuleDirectory(BASE_PATH.'/modules');
185-
$front->addModuleDirectory(BASE_PATH.'/privateModules');
185+
if(file_exists(BASE_PATH.'/privateModules'))
186+
{
187+
$front->addModuleDirectory(BASE_PATH.'/privateModules');
188+
}
186189
}
187190

188191
/** init routes*/

0 commit comments

Comments
 (0)