if ($this->_isSelectableTheme($xoops_theme_select[0])) {
$this->mRoot->mContext->setThemeName($xoops_theme_select[0]);
$_SESSION['xoopsUserTheme'] = $xoops_theme_select[0];
- $controller->executeForward($GLOBALS['xoopsRequestUri']);
+ $controller->executeForward(xoops_getenv('REQUEST_URI'));
}
} elseif (!empty($_SESSION['xoopsUserTheme']) && $this->_isSelectableTheme($_SESSION['xoopsUserTheme'])) {
$this->mRoot->mContext->setThemeName($_SESSION['xoopsUserTheme']);