OSDN Git Service

#17447 - Cleanup global variables.
[mulab/XCLite.git] / public_html / modules / legacy / preload / ThemeSelect.class.php
index 6191762..7553706 100644 (file)
@@ -48,7 +48,7 @@ class Legacy_ThemeSelect extends XCube_ActionFilter
                    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']);