]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - dansguardian_report.c
Pre-parse variables Index and IndexTree
[thirdparty/sarg.git] / dansguardian_report.c
index 3b6a411b1ece2b7a31f88078388e55a79ddc69fd..92808f920d098b9d781aafcf88d6d168175034f4 100644 (file)
@@ -88,7 +88,7 @@ void dansguardian_report(void)
    fprintf(fp_ou,"<body bgcolor=%s text=%s background='%s'>\n",BgColor,TxColor,BgImage);
    write_logo_image(fp_ou);
 
-   if(strcmp(IndexTree,"date") == 0)
+   if(IndexTree == INDEX_TREE_DATE)
       show_sarg(fp_ou, "../../..");
    else
       show_sarg(fp_ou,"..");