Skip to content
Snippets Groups Projects
Commit 3412224e authored by runemaster's avatar runemaster
Browse files

Put unlinked Previous Message/Next Message if there isn't any instead of blank space.

parent 4d24338a
No related branches found
No related tags found
No related merge requests found
......@@ -78,9 +78,13 @@ if(template.hdr.thread_first!=0) {
}
if(tmp!=undefined)
template.nextlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+next_msg_html+'</a>';
else
template.nextlink='Next Message';
tmp=find_np_message(template.idx.offset,false);
if(tmp!=undefined)
template.prevlink='<a href="msg.ssjs?msg_sub='+sub+'&amp;message='+tmp+'">'+prev_msg_html+'</a>';
else
template.prevlink='Previous Message';
write_template("header.inc");
write_template("msgs/msg.inc");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment