From 205552eda568aa29a6ea021325e73aef1ae1e214 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 9 Nov 2023 16:09:43 -0800 Subject: [PATCH] fix: web component translations class --- .../plugins/dynamix.my.servers/include/translations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/translations.php b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/translations.php index 8d4210675..dad4c27d7 100644 --- a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/translations.php +++ b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/translations.php @@ -21,8 +21,8 @@ * * Usage example: * ``` - * $wc_translations = new WebComponentTranslations(); - * $webComponentTranslations = $wc_translations->getTranslations(); + * $wCTranslations = new WebComponentTranslations(); + * $wCTranslations->getTranslations(); * ``` */ class WebComponentTranslations @@ -372,6 +372,6 @@ class WebComponentTranslations public function getTranslations() { - return $this->translations[$_SESSION['locale'] ?? 'en_US'] ?? []; + return $this->translations ?? []; } }