]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_import.php
Even more double->single converted
[mailer.git] / inc / modules / admin / what-theme_import.php
index 0d8c7aeeaac2a5fc621f55ec3394bcb2e4287190..8e08532f1a79f655a93807356b2fcf292a672ca1 100644 (file)
@@ -50,13 +50,10 @@ $GLOBALS['theme_mode'] = 'test';
 if (isPostRequestElementSet('theme')) {
        // Check if theme is there
        if (!ifThemeExists(postRequestElement('theme'))) {
-               // Import theme
-               $inc = sprintf("theme/%s/theme.php", sqlEscapeString(postRequestElement('theme')));
-
                // Is the theme readable?
-               if (isIncludeReadable($inc)) {
+               if (isThemeReadable(postRequestElement('theme'))) {
                        // Load the theme header file
-                       loadInclude($inc);
+                       loadInclude(sprintf('theme/%s/theme.php', sqlEscapeString(postRequestElement('theme'))));
 
                        // Register it ith the exchange
                        sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_themes` (`theme_path`, `theme_active`, `theme_ver`, `theme_name`)