From 058969c0dc80b712f91aa8ed8982a9951586ee4e Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 27 Dec 2023 03:41:48 +0100 Subject: [PATCH] New feature: Favorites --- emhttp/plugins/dynamix/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/template.php b/emhttp/plugins/dynamix/template.php index 9c95feb56..cdd58b270 100644 --- a/emhttp/plugins/dynamix/template.php +++ b/emhttp/plugins/dynamix/template.php @@ -71,7 +71,7 @@ $path = substr(strtok(_var($_SERVER,'REQUEST_URI'),'?'),1); $task = strtok($path,'/'); // Add translation for favorites page -if ($task=='Favorites') { +if ($locale && $task=='Favorites') { foreach(['settings','tools'] as $more) { $text = "$docroot/languages/$locale/$more.txt"; if (file_exists($text)) {