Unknown module in non-HTML mode, debug comments removed :(
[mailer.git] / inc / filters.php
index 40fb713..20dae9f 100644 (file)
@@ -591,9 +591,12 @@ function FILTER_DETERMINE_WHAT_ACTION () {
                        if (isGetRequestElementSet('module')) {
                                // Set module from request
                                setModule(getRequestElement('module'));
-                       } else {
+                       } elseif (getOutputMode() == '0') {
                                // Set default module 'index'
                                setModule('index');
+                       } else {
+                               // Unknown module
+                               setModule('unknown');
                        }
                } // END - if
 
@@ -850,7 +853,7 @@ function FILTER_FLUSH_TEMPLATE_CACHE () {
                // Now flush all
                foreach ($GLOBALS['template_eval'] as $template=>$eval) {
                        // Flush the cache (if not yet found)
-                       //flushTemplateCache($template, $eval);
+                       flushTemplateCache($template, $eval);
                } // END - if
        } // END - if
 }