Restore accidently deleted date from www messages

This commit is contained in:
Andrew Pamment 2018-05-25 21:39:29 +10:00
parent 8f948e59c4
commit 9e816f05f6
3 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,7 @@ $(CDK):
cd ../deps/cdk-5.0-20161210/ && $(MAKE)
$(UUID):
rm ../deps/libuuid/ltmain.sh ../deps/libuuid/libtool
rm ../deps/libuuid/ltmain.sh ../deps/libuuid/libtool || true
cd ../deps/libuuid/ && libtoolize
cd ../deps/libuuid/ && ./configure
cd ../deps/libuuid/ && $(MAKE)

View File

@ -36,7 +36,7 @@ $(CDK):
cd ../deps/cdk-5.0-20161210/ && $(MAKE)
$(UUID):
rm ../deps/libuuid/ltmain.sh ../deps/libuuid/libtool
rm ../deps/libuuid/ltmain.sh ../deps/libuuid/libtool || true
cd ../deps/libuuid/ && libtoolize
cd ../deps/libuuid/ && ./configure
cd ../deps/libuuid/ && $(MAKE)

View File

@ -491,6 +491,13 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
} else {
sprintf(buffer, "<div class=\"msg-view-date\">Date: %.2d:%.2d %.2d-%.2d-%.2d</div>\n", msg_date.tm_hour, msg_date.tm_min, msg_date.tm_mday, msg_date.tm_mon + 1, msg_date.tm_year - 100);
}
if (len + strlen(buffer) > max_len - 1) {
max_len += 4096;
page = (char *)realloc(page, max_len);
}
strcat(page, buffer);
len += strlen(buffer);
sprintf(buffer, "<div class=\"msg-view-options\"><a href=\"%smsgs/flag/%d/%d/%d\"><img src=\"%sstatic/flag.png\" /></a></div>", conf.www_url, conference, area, msg, conf.www_url);
if (len + strlen(buffer) > max_len - 1) {