mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°3556 - Fix JS dict. entries not available in SetupPage anymore
This commit is contained in:
@@ -215,7 +215,8 @@ class WebPage implements Page
|
||||
$this->aBlockParams = [];
|
||||
$this->bHasCollapsibleSection = false;
|
||||
$this->bPrintable = $bPrintable;
|
||||
$this->bAddJSDict = true;
|
||||
// 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') && file_exists(utils::GetConfigFilePath());
|
||||
$this->oContentLayout = new UIContentBlock();
|
||||
$this->SetTemplateRelPath(static::DEFAULT_PAGE_TEMPLATE_REL_PATH);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user