- if (isGetRequestElementSet('theme')) $newTheme = getRequestElement('theme');
- if (isPostRequestElementSet('theme')) $newTheme = secureString(postRequestElement('theme'));
- outputHtml('?theme=' . $newTheme . '&installing=1', false);
+ if (isPostRequestParameterSet('theme')) {
+ $newTheme = postRequestParameter('theme');
+ } elseif (isGetRequestParameterSet('theme')) {
+ $newTheme = getRequestParameter('theme');
+ }
+ $OUT .= '?theme=' . $newTheme . '&installing=1';