fix(lib): templates core path detection

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2026-03-11 17:24:11 +01:00 committed by backportbot[bot]
parent 443f489331
commit 8a7e2127c7

View file

@ -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) {