From c9462ef689c7187eb1ed41f46f71e29ba968ac7d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 May 2005 05:34:02 +0000 Subject: [PATCH] r189: Added support to page_start() so we don't double print the header --- includes/adminfunctions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/adminfunctions.php b/includes/adminfunctions.php index 1e44180..69ff049 100755 --- a/includes/adminfunctions.php +++ b/includes/adminfunctions.php @@ -58,10 +58,15 @@ EOD; // ################################################################### // ########################### PAGE CONTROL ########################## // ################################################################### - function page_start($actiontitle, $pageclass = ':default:', $pagemargin = 15, $extra = '', $onload = false, $margin = 0, $dotpath = '.') + function page_start($actiontitle, $pageclass = ':default:', $pagemargin = 15, $extra = '', $onload = false, $margin = 0, $dotpath = '.', $override = false) { global $bugsys; + if (constant('DONE_HEADER') AND !$override) + { + return; + } + $title = 'BugStrike - ' . phrase('administration_x', $actiontitle); echo "\n"; @@ -100,6 +105,11 @@ EOD; } echo "
\n\n\n"; + + if (!defined('DONE_HEADER')) + { + define('DONE_HEADER', 1); + } } function page_code($code) -- 2.22.5