More filters created, TODOs.txt updated, config_mediadata fixed
[mailer.git] / inc / libs / other_functions.php
index 4cc7b7cf03d4c07f0fda3c540288e59dc7a969c1..cc518c0718ea8905b26dc581e5c53728b03a0ac8 100644 (file)
@@ -65,5 +65,14 @@ function displayDebugSqls () {
        loadTemplate('admin_other_sqls', false, $OUT);
 }
 
+// Filter for debugging SQLs
+function FILTER_DISPLAY_DEBUG_SQL () {
+       // Shall we display SQL queries?
+       if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestElementSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
+               // Then display it here
+               displayDebugSqls();
+       } // END - if
+}
+
 // [EOF]
 ?>