mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
Add sAPPROOTURL to the data of the twig
This commit is contained in:
@@ -169,7 +169,10 @@ abstract class Controller extends AbstractController
|
||||
$this->SetViewPath($sViewPath, $aAdditionalPaths);
|
||||
if ($sModuleName != 'core') {
|
||||
try {
|
||||
$this->aDefaultParams = ['sIndexURL' => utils::GetAbsoluteUrlModulePage($this->m_sModule, 'index.php')];
|
||||
$this->aDefaultParams = [
|
||||
'sIndexURL' => utils::GetAbsoluteUrlModulePage($this->m_sModule, 'index.php'),
|
||||
'sAPPROOTURL' => utils::GetAbsoluteUrlAppRoot(),
|
||||
];
|
||||
} catch (Exception $e) {
|
||||
IssueLog::Error($e->getMessage());
|
||||
}
|
||||
@@ -197,7 +200,10 @@ abstract class Controller extends AbstractController
|
||||
$this->SetModuleName(basename($sModulePath));
|
||||
$this->SetViewPath($sModulePath.'/view');
|
||||
try {
|
||||
$this->aDefaultParams = ['sIndexURL' => utils::GetAbsoluteUrlModulePage($this->m_sModule, 'index.php')];
|
||||
$this->aDefaultParams = [
|
||||
'sIndexURL' => utils::GetAbsoluteUrlModulePage($this->m_sModule, 'index.php'),
|
||||
'sAPPROOTURL' => utils::GetAbsoluteUrlAppRoot(),
|
||||
];
|
||||
} catch (Exception $e) {
|
||||
IssueLog::Error($e->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user