Skip to content
Snippets Groups Projects
Commit 2d9fbd21 authored by runemaster's avatar runemaster
Browse files

Fix incorrect page title issue I introduced ...

parent cbf62b07
Branches
Tags
No related merge requests found
...@@ -4,9 +4,9 @@ load("../web/lib/msgslib.ssjs"); ...@@ -4,9 +4,9 @@ load("../web/lib/msgslib.ssjs");
load("../web/lib/mime_decode.ssjs"); load("../web/lib/mime_decode.ssjs");
template.txtbodybgwht=0; template.txtbodybgwht=0;
template.author_avatar = ''; template.author_avatar = '';
/* If you want to disable display of certain .inc files */ /* If you want to disable display of certain .inc files */
/* for a specific theme declare it like this in the .ssjs */ /* for a specific theme declare it like this in the .ssjs */
/* file corresponding to the page you want to overide the */ /* file corresponding to the page you want to overide the */
...@@ -71,15 +71,6 @@ else { ...@@ -71,15 +71,6 @@ else {
error("You can't read messages in this sub!"); error("You can't read messages in this sub!");
} }
if(do_header)
write_template("header.inc");
if(do_topnav)
load(topnav_html);
if(do_leftnav)
load(leftnav_html);
if(do_rightnav)
write_template("rightnav.inc");
if(sub=='mail') if(sub=='mail')
template.can_post=!(user.security.restrictions&UFLAG_E); template.can_post=!(user.security.restrictions&UFLAG_E);
else else
...@@ -118,6 +109,7 @@ if(msg.type=="plain") { ...@@ -118,6 +109,7 @@ if(msg.type=="plain") {
template.body=make_links(template.body); template.body=make_links(template.body);
} }
} }
if(msg.attachments!=undefined) { if(msg.attachments!=undefined) {
template.attachments=new Object; template.attachments=new Object;
for(att in msg.attachments) { for(att in msg.attachments) {
...@@ -128,10 +120,10 @@ if(msg.attachments!=undefined) { ...@@ -128,10 +120,10 @@ if(msg.attachments!=undefined) {
if(template.hdr != null) { if(template.hdr != null) {
if(Themes[CurrTheme].do_forumlook==true && sub!='mail') if(Themes[CurrTheme].do_forumlook==true && sub!='mail')
template.title="Reading Messages in "+msg_area.grp[msg_area.sub[sub].grp_name]; template.title="Reading Messages in "+msg_area.grp_list[msg_area.sub[sub].grp_number].description + " -> " + msg_area.sub[sub].description;
else else
template.title="Message: "+template.hdr.subject; template.title="Message: "+template.hdr.subject;
if(sub=='mail' || user.security.level>=90) { /* Sysops can dump all message headers */ if(sub=='mail' || user.security.level>=90) { /* Sysops can dump all message headers */
template.hfields="<html><head><title>Message Header Fields</title></head>"; template.hfields="<html><head><title>Message Header Fields</title></head>";
template.hfields+="<body>"; template.hfields+="<body>";
...@@ -189,6 +181,14 @@ else ...@@ -189,6 +181,14 @@ else
// m--; // m--;
if(do_header)
write_template("header.inc");
if(do_topnav)
load(topnav_html);
if(do_leftnav)
load(leftnav_html);
if(do_rightnav)
write_template("rightnav.inc");
write_template("msgs/msg.inc"); write_template("msgs/msg.inc");
// } // }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment