]> git.mxchange.org Git - mailer.git/blobdiff - inc/stylesheet.php
Flushing template cache is anoying while developing templates, now we can 'debug...
[mailer.git] / inc / stylesheet.php
index 219918f6b25e32b310880266b7310ea89f22756b..6e4ac65e7f71d626c6f6bfc0dccce85615b1d8bc 100644 (file)
@@ -53,7 +53,7 @@ if ((isInstallationPhase())) $STYLES[] = 'install.css';
 if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE');
 
 // Output CSS files or content or link to css.php ?
-if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) {
+if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
        // Load CSS files
        $STYLES = merge_array($STYLES, getExtensionCssFiles());
 
@@ -111,7 +111,7 @@ if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) {
                // Default theme first
                $newTheme = 'default';
                if (isGetRequestElementSet('theme'))  $newTheme = getRequestElement('theme');
-               if (isPostRequestElementSet('theme')) $newTheme = SQL_ESCAPE(postRequestElement('theme'));
+               if (isPostRequestElementSet('theme')) $newTheme = secureString(postRequestElement('theme'));
                outputHtml('?theme=' . $newTheme . '&installing=1', false);
        } else {
                // Add SVN revision to bypass caching problems