disable genurls if www_server is not enabled

This commit is contained in:
Andrew Pamment 2018-01-24 11:39:27 +10:00
parent 4cc992d08e
commit 5c0214c737

View File

@ -803,6 +803,7 @@ void genurls() {
#if defined(ENABLE_WWW) #if defined(ENABLE_WWW)
int i; int i;
char *url; char *url;
if (conf.www_server) {
for (i=0;i<tagged_count;i++) { for (i=0;i<tagged_count;i++) {
if (i % 6 == 0 && i != 0) { if (i % 6 == 0 && i != 0) {
// pause // pause
@ -828,6 +829,11 @@ void genurls() {
tagged_count = 0; tagged_count = 0;
s_printf(get_string(6)); s_printf(get_string(6));
s_getc(); s_getc();
} else {
s_printf(get_string(258));
s_printf(get_string(6));
s_getc();
}
#else #else
s_printf(get_string(258)); s_printf(get_string(258));
s_printf(get_string(6)); s_printf(get_string(6));