N°2060 - Fix regression making url pointing to the portal not working in notification anymore

This commit is contained in:
Molkobain
2019-12-05 12:39:28 +01:00
parent 4db114f64d
commit 366d2754ef
2 changed files with 4 additions and 6 deletions

View File

@@ -15,8 +15,6 @@
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*
*
*/
use Combodo\iTop\Portal\Kernel;
@@ -24,6 +22,10 @@ use Symfony\Component\HttpFoundation\Request;
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
if ($trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : (isset($_ENV['TRUSTED_PROXIES']) ? $_ENV['TRUSTED_PROXIES'] : false))
{