X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Ffooter.inc;h=5804c3341069bf5a06802880b2cf37a31a4c720d;hb=de09a35c9e55aceaf1c71052cbb40f44e4b3bbc7;hp=e07f69838a5b900b126c5fc739b37eae7c9cae48;hpb=4247980002820396888c3b6bcbd18617fbd196ef;p=fa-stable.git diff --git a/includes/page/footer.inc b/includes/page/footer.inc index e07f6983..5804c334 100644 --- a/includes/page/footer.inc +++ b/includes/page/footer.inc @@ -9,12 +9,13 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -function page_footer($no_menu=false, $is_index=false, $hide_back_link=false) +function page_footer($no_menu=false, $is_index=false) { - global $path_to_root, $js_lib, $Validate, $Editors, $Ajax; + global $path_to_root, $js_lib, $Validate, $Editors, $Ajax, $sql_queries; + + $page_header_args = func_get_args(); + hook_invoke_all('pre_footer', $page_header_args); - if (!$is_index && !$hide_back_link && function_exists('hyperlink_back')) - hyperlink_back(); include_once($path_to_root."/themes/".user_theme()."/renderer.php"); $rend = new renderer(); $rend->menu_footer($no_menu, $is_index); @@ -22,7 +23,7 @@ function page_footer($no_menu=false, $is_index=false, $hide_back_link=false) $edits = "editors = ".$Ajax->php2js($Editors).";"; $Ajax->addScript('editors', $edits); - echo "\n"; + + if ($sql_queries) { + div_start('footer_debug'); + echo "
$sql_queries
"; + div_end(); + } echo "\n"; }