From 9f95d45f5165c8b8586b1a2faec930ca846e35a9 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Wed, 16 Feb 2022 12:06:27 +0100 Subject: [PATCH] Fix check on when to load JS dicts --- sources/application/WebPage/WebPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/application/WebPage/WebPage.php b/sources/application/WebPage/WebPage.php index 9d1fb358c..8a93cea1e 100644 --- a/sources/application/WebPage/WebPage.php +++ b/sources/application/WebPage/WebPage.php @@ -216,7 +216,7 @@ class WebPage implements Page $this->bHasCollapsibleSection = false; $this->bPrintable = $bPrintable; // Note: JS dict. entries cannot be added to a page if current environment and config file aren't available yet. - $this->bAddJSDict = class_exists('\Dict') && is_dir(utils::GetCompiledEnvironmentPath()) && file_exists(utils::GetConfigFilePath()); + $this->bAddJSDict = class_exists('\Dict') && is_dir(utils::GetCompiledEnvironmentPath().'dictionaries/') && file_exists(utils::GetConfigFilePath()); $this->oContentLayout = new UIContentBlock(); $this->SetTemplateRelPath(static::DEFAULT_PAGE_TEMPLATE_REL_PATH);