- if (isGetRequestParameterSet('theme')) $newTheme = getRequestParameter('theme');
- if (isPostRequestParameterSet('theme')) $newTheme = secureString(postRequestParameter('theme'));
+ if (isPostRequestElementSet('theme')) {
+ $newTheme = postRequestElement('theme');
+ } elseif (isGetRequestElementSet('theme')) {
+ $newTheme = getRequestElement('theme');
+ }