]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_import.php
A lot double-quotes rewritten to single-quotes, global fix for getMessage() calls
[mailer.git] / inc / modules / admin / what-theme_import.php
index 0817993d288abbe32968de7f99f0f47981c6c344..727974ba3345b2d05001f4bc4127d54c610c259a 100644 (file)
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif (!EXT_IS_ACTIVE('theme')) {
-       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'theme');
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'theme'));
        return;
 }
 
@@ -52,7 +52,7 @@ ADD_DESCR('admin', __FILE__);
 $GLOBALS['theme_mode'] = 'test';
 
 // Import selected theme if not present
-if (REQUEST_ISSET_POST(('theme'))) {
+if (REQUEST_ISSET_POST('theme')) {
        // Check if theme is there
        if (!THEME_CHECK_EXIST(REQUEST_POST('theme'))) {
                // Import theme