]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - report.c
Pre-parse variables Index and IndexTree
[thirdparty/sarg.git] / report.c
index 431574907f836eaaa77d60871e6eb62b1b27166e..21dc1d46ac95f09bccd13a356e0245a768e65991 100644 (file)
--- a/report.c
+++ b/report.c
@@ -252,7 +252,7 @@ void gerarel(void)
                fprintf(fp_tt,"<body bgcolor=\"%s\" text=\"%s\" background=\"%s\">\n",BgColor,TxColor,BgImage);
                write_logo_image(fp_tt);
 
-               if(strcmp(IndexTree,"date") == 0)
+               if(IndexTree == INDEX_TREE_DATE)
                   show_sarg(fp_tt, "../../../..");
                else
                   show_sarg(fp_tt, "../..");