]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/other_functions.php
Even more rewrites to make use of the EL
[mailer.git] / inc / libs / other_functions.php
index eefb919622133f6d86a4e1d0d3ba352b6ba58cea..811ff5fa2788a6cf5d5329f6aefd09adf2084fda 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -49,9 +50,6 @@ function displayDebugSqls () {
                // Translate/add some data
                $content['sw']       = $SW;
                $content['i']        = $i;
-               $content['num_rows'] = translateComma($content['num_rows']);
-               $content['affected'] = translateComma($content['affected']);
-               $content['sql_str']  = secureString($content['sql_str']);
                $content['timing']   = translateComma($content['timing'] * 1000);
 
                // Load row template
@@ -62,13 +60,13 @@ function displayDebugSqls () {
        } // END - foreach
 
        // Load main template
-       loadTemplate('admin_other_sqls', false, $OUT);
+       $GLOBALS['page_footer'] .= loadTemplate('admin_other_sqls', true, $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)) {
+       if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                displayDebugSqls();
        } // END - if