X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmain.inc;h=016102a58325c28800694fff05a919fd103cd1a5;hb=c51f4515e92fc251aa51b7809d4514161655fa37;hp=b0878fb5004450b941b39fe611ad9fa81b2ef3d9;hpb=1441de86c0a297a2b748e10f930f31a94a507f68;p=fa-stable.git diff --git a/includes/main.inc b/includes/main.inc index b0878fb5..016102a5 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -48,13 +48,16 @@ function page($title, $no_menu=false, $is_index=false, $onload="", $js="", $scri } } -function end_page($no_menu=false, $is_index=false) +function end_page($no_menu=false, $is_index=false, $hide_back_link=false) { - global $path_to_root, $Ajax; - $hide_menu = $no_menu; - div_end(); // _page_body section - include($path_to_root . "/includes/page/footer.inc"); - page_footer($no_menu, $is_index); + global $path_to_root; + + if (!$is_index && !$hide_back_link && function_exists('hyperlink_back')) + hyperlink_back(true, $no_menu); + div_end(); // end of _page_body section + + include($path_to_root . "/includes/page/footer.inc"); + page_footer($no_menu, $is_index, $hide_back_link); } function flush_dir($path, $wipe = false)