[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: Fix tac_header refresh
git at icinga.org
git at icinga.org
Mon Apr 25 16:03:14 CEST 2011
Module: icinga-core
Branch: mfriedrich/core
Commit: a783a2bb0bf8bd682fa6ab4fb1ad7557f7a9e1cb
URL: https://git.icinga.org/?p=icinga-core.git;a=commit;h=a783a2bb0bf8bd682fa6ab4fb1ad7557f7a9e1cb
Author: Matthew J. Brooks <matthew at sonomatechpartners.com>
Date: Thu Apr 21 11:50:08 2011 -0700
Fix tac_header refresh
refresh=FALSE was misplaced and needs to be set prior to the call
to document_header()
---
cgi/tac.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/cgi/tac.c b/cgi/tac.c
index 23ff394..201e31b 100644
--- a/cgi/tac.c
+++ b/cgi/tac.c
@@ -274,6 +274,11 @@ int main(void){
time(&t5);
#endif
+ /* no need to refresh if this is not the tac_header */
+ if(tac_header==TRUE && show_tac_header==FALSE){
+ refresh=FALSE;
+ }
+
document_header(CGI_ID,TRUE);
/* get authentication information */
@@ -884,9 +889,6 @@ void display_tac_overview(void){
if(tac_header==TRUE && show_tac_header==FALSE){ // we want the top header, but not the tac version
- /* no need to refresh */
- refresh=FALSE;
-
printf(" <div id='banner' align='center'><img src='%s%s' alt='%s' /></div>",url_images_path,TAC_HEADER_DEFAULT_LOGO,TAC_HEADER_DEFAULT_LOGO_ALT);
return; //we're done here
}
More information about the icinga-checkins
mailing list