fix(lib): templates core path detection
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ class Template extends Base implements ITemplate {
|
||||
*/
|
||||
protected function findTemplate(string $theme, string $app, string $name): array {
|
||||
// Check if it is a app template or not.
|
||||
if ($app !== '') {
|
||||
if ($app !== '' && $app !== 'core') {
|
||||
try {
|
||||
$appDir = Server::get(IAppManager::class)->getAppPath($app);
|
||||
} catch (AppPathNotFoundException) {
|
||||
|
||||
Reference in New Issue
Block a user