set 'referer' in View to HTTP_REFERER

This commit is contained in:
Uwe Steinmann 2024-08-19 20:03:48 +02:00
parent 7a322702af
commit 7e32644307

View File

@ -127,6 +127,7 @@ class UI extends UI_Default {
$params['settings'] = $settings;
$view = new $classname($params, $theme);
/* Set some configuration parameters */
$view->setParam('referer', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
$view->setParam('theme', $theme);