use tplset according to current theme

This commit is contained in:
Jean-Christian Paul Denis 2022-12-17 17:15:00 +01:00
parent 057d865766
commit 21eb52577d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -267,7 +267,8 @@ class urlSaba extends dcUrlHandlers
$GLOBALS['_from_error'] = true;
# Serve saba
self::serveDocument('saba_404_default.html');
$tplset = dcCore::app()->themes->moduleInfo(dcCore::app()->blog->settings->system->theme, 'tplset');
self::serveDocument('saba_404_' . (!empty($tplset) && in_array($tplset, ['dotty', 'mustek']) ? $tplset : 'default') . '.html');
return true;
}