X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-theme_edit.php;h=8b2c80037b2fc963a9b64f032ee93b5bd64017d0;hp=9e4ae15dc37d0d37340ecf96036f90bb681b509c;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=b8a6f8012aa3509d8e0f8fd078e044f20e80707a diff --git a/inc/modules/admin/what-theme_edit.php b/inc/modules/admin/what-theme_edit.php index 9e4ae15dc3..8b2c80037b 100644 --- a/inc/modules/admin/what-theme_edit.php +++ b/inc/modules/admin/what-theme_edit.php @@ -52,18 +52,18 @@ if (!isExtensionActive('theme')) { // Check for selected themes if (countPostSelection() > 0) { $OUT = ''; - foreach (postRequestElement('sel') as $id => $sel) { + foreach (postRequestParameter('sel') as $id => $sel) { $sql = ''; // Shall I de-/activate or delete themes? - if (isPostRequestElementSet(('status'))) { + if (isPostRequestParameterSet(('status'))) { // Change status - if (postRequestElement('active', $id) == 'Y') { + if (postRequestParameter('active', $id) == 'Y') { $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET theme_active='N' WHERE `id`='".$id."' LIMIT 1"; } else { $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET theme_active='Y' WHERE `id`='".$id."' LIMIT 1"; } $OUT = getMessage('ADMIN_THEMES_UPDATED'); - } elseif (isPostRequestElementSet('del')) { + } elseif (isPostRequestParameterSet('del')) { // Delete themes $sql = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_themes` WHERE `id`='".$id."' LIMIT 1"; $OUT = getMessage('ADMIN_THEMES_DELETED'); @@ -81,9 +81,9 @@ if (countPostSelection() > 0) { // Output generated? if (empty($OUT)) $OUT = getMessage('ADMIN_THEME_NO_OUTPUT'); -} elseif (isGetRequestElementSet('default_theme')) { +} elseif (isGetRequestParameterSet('default_theme')) { // Escape string from input - $postData['default_theme'] = getRequestElement('default_theme'); + $postData['default_theme'] = getRequestParameter('default_theme'); // Set session setTheme($postData['default_theme']); @@ -124,7 +124,7 @@ if (SQL_NUMROWS($result) > 0) { // Is the loaded theme name != current theme name? $LINK = $content['theme_path']; - if ($content['theme_path'] != getCurrentTheme()) $LINK = "".$content['theme_path'].""; + if ($content['theme_path'] != getCurrentTheme()) $LINK = '' . $content['theme_path'] . ''; // Prepare data for the row template $content = array( @@ -134,7 +134,7 @@ if (SQL_NUMROWS($result) > 0) { 'link' => $LINK, 'name' => $content['theme_name'], 'is_act' => translateYesNo($content['theme_active']), - 'email' => "".$GLOBALS['theme_data']['author']."", + 'email' => '