X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fserv_func.c;h=66afe5e12e87dd818c95a461d4371fa6f9ec6fc8;hb=c73091a2ae896b6be5aa94b911c1c89d76a85688;hp=b0427be542e162b70fe7beebaf82939936309537;hpb=5e96c2718b49483ac4098a16da52b0724bb7cf9e;p=citadel.git diff --git a/webcit/serv_func.c b/webcit/serv_func.c index b0427be54..66afe5e12 100644 --- a/webcit/serv_func.c +++ b/webcit/serv_func.c @@ -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) {