mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°2060 - Fix regression making url pointing to the portal not working in notification anymore
This commit is contained in:
@@ -147,10 +147,6 @@ if (empty($_ENV['PORTAL_ID']))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stacking context tag so it knows we are in the portal
|
|
||||||
$oContext = new ContextTag('GUI:Portal');
|
|
||||||
$oContext2 = new ContextTag('Portal:' . $_ENV['PORTAL_ID']);
|
|
||||||
|
|
||||||
// Env. vars to be used in templates and others
|
// Env. vars to be used in templates and others
|
||||||
$_ENV['COMBODO_CURRENT_ENVIRONMENT'] = utils::GetCurrentEnvironment();
|
$_ENV['COMBODO_CURRENT_ENVIRONMENT'] = utils::GetCurrentEnvironment();
|
||||||
$_ENV['COMBODO_ABSOLUTE_URL'] = utils::GetAbsoluteUrlAppRoot();
|
$_ENV['COMBODO_ABSOLUTE_URL'] = utils::GetAbsoluteUrlAppRoot();
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Combodo\iTop\Portal\Kernel;
|
use Combodo\iTop\Portal\Kernel;
|
||||||
@@ -24,6 +22,10 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
|
|
||||||
require_once MODULESROOT.'itop-portal-base/portal/config/bootstrap.php';
|
require_once MODULESROOT.'itop-portal-base/portal/config/bootstrap.php';
|
||||||
|
|
||||||
|
// Stacking context tag so it knows we are in the portal
|
||||||
|
$oContext = new ContextTag('GUI:Portal');
|
||||||
|
$oContext2 = new ContextTag('Portal:' . $_ENV['PORTAL_ID']);
|
||||||
|
|
||||||
// Note: Manually refactored ternary condition to be PHP 5.x compatible
|
// Note: Manually refactored ternary condition to be PHP 5.x compatible
|
||||||
if ($trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : (isset($_ENV['TRUSTED_PROXIES']) ? $_ENV['TRUSTED_PROXIES'] : false))
|
if ($trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : (isset($_ENV['TRUSTED_PROXIES']) ? $_ENV['TRUSTED_PROXIES'] : false))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user