Renderers cleanup part 1
[citadel.git] / webcit / serv_func.c
index b0427be542e162b70fe7beebaf82939936309537..66afe5e12e87dd818c95a461d4371fa6f9ec6fc8 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Functions which handle communication with the Citadel server.
+ *
+ * Copyright (c) 1996-2018 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ */
 
 #include "webcit.h"
 #include "webserver.h"
@@ -502,12 +510,8 @@ void tmplput_serv_software(StrBuf *Target, WCTemplputParams *TP)
 
 void tmplput_serv_rev_level(StrBuf *Target, WCTemplputParams *TP)
 {
-       wcsession *WCC = WC;
-       if (WCC->serv_info == NULL)
-               return;
-       StrBufAppendPrintf(Target, "%d.%02d",
-                           WCC->serv_info->serv_rev_level / 100,
-                           WCC->serv_info->serv_rev_level % 100);
+       if (WC->serv_info == NULL) return;
+       StrBufAppendPrintf(Target, "%d", WC->serv_info->serv_rev_level);
 }
 int conditional_serv_newuser_disabled(StrBuf *Target, WCTemplputParams *TP)
 {