mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Fix check on when to load JS dicts
This commit is contained in:
committed by
Molkobain
parent
bceb570d84
commit
9f95d45f51
@@ -216,7 +216,7 @@ class WebPage implements Page
|
|||||||
$this->bHasCollapsibleSection = false;
|
$this->bHasCollapsibleSection = false;
|
||||||
$this->bPrintable = $bPrintable;
|
$this->bPrintable = $bPrintable;
|
||||||
// Note: JS dict. entries cannot be added to a page if current environment and config file aren't available yet.
|
// 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->oContentLayout = new UIContentBlock();
|
||||||
$this->SetTemplateRelPath(static::DEFAULT_PAGE_TEMPLATE_REL_PATH);
|
$this->SetTemplateRelPath(static::DEFAULT_PAGE_TEMPLATE_REL_PATH);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user