fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-theme_import.php
index 0e91fc4cf76706253e1c342fc67639700d8fc1a1..302558b4da72351b0cae7faed53947024bf8893c 100644 (file)
@@ -53,11 +53,11 @@ if (!isExtensionActive('theme')) {
 $GLOBALS['theme_mode'] = 'test';
 
 // Import selected theme if not present
-if (isPostRequestElementSet('theme')) {
+if (isPostRequestParameterSet('theme')) {
        // Check if theme is there
-       if (!ifThemeExists(postRequestElement('theme'))) {
+       if (!ifThemeExists(postRequestParameter('theme'))) {
                // Import theme
-               $inc = sprintf("theme/%s/theme.php", SQL_ESCAPE(postRequestElement('theme')));
+               $inc = sprintf("theme/%s/theme.php", SQL_ESCAPE(postRequestParameter('theme')));
 
                // Is the theme readable?
                if (isIncludeReadable($inc)) {
@@ -68,7 +68,7 @@ if (isPostRequestElementSet('theme')) {
                        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_themes` (`theme_path`,`theme_active`,`theme_ver`,`theme_name`)
 VALUES ('%s','N','%s','%s')",
                                array(
-                                       postRequestElement('theme'),
+                                       postRequestParameter('theme'),
                                        $GLOBALS['theme_data']['version'],
                                        $GLOBALS['theme_data']['name']
                                ), __FILE__, __LINE__);
@@ -77,14 +77,14 @@ VALUES ('%s','N','%s','%s')",
                        rebuildCacheFile('themes', 'them');
 
                        // Prepare message
-                       $message = getMaskedMessage('ADMIN_THEME_IMPORTED', postRequestElement('theme'));
+                       $message = getMaskedMessage('ADMIN_THEME_IMPORTED', postRequestParameter('theme'));
                } else {
                        // Include file not found!
-                       $message = getMaskedMessage('ADMIN_THEME_INC_404', postRequestElement('theme'));
+                       $message = getMaskedMessage('ADMIN_THEME_INC_404', postRequestParameter('theme'));
                }
        } else {
                // Theme already imported
-               $message = getMaskedMessage('ADMIN_THEME_ALREADY_INSTALLED', postRequestElement('theme'));
+               $message = getMaskedMessage('ADMIN_THEME_ALREADY_INSTALLED', postRequestParameter('theme'));
        }
 
        // Output message