From 21eb52577d57b9174ccc2c8e6c995538faf85b88 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 17 Dec 2022 17:15:00 +0100 Subject: [PATCH] use tplset according to current theme --- _public.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_public.php b/_public.php index 0bdf4fd..cf23222 100644 --- a/_public.php +++ b/_public.php @@ -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; }