$thread_name = _("Thread View");
$newsort = $aMailbox['SORT'] + SQSORT_THREAD;
}
- $thread_link_str = '<small>[<a href="' . $baseurl . '&srt='
- . $newsort . '&startMessage=1">' . $thread_name
- . '</a>]</small>';
+ $thread_link_uri = $baseurl . '&srt=' . $newsort
+ . '&startMessage=1';
} else {
- $thread_link_str ='';
+ $thread_link_uri ='';
+ $thread_name = '';
}
$sort = $aMailbox['SORT'];
$aTemplate['trash_folder'] = $trash_folder;
$aTemplate['sent_folder'] = $sent_folder;
$aTemplate['draft_folder'] = $draft_folder;
- $aTemplate['thread_link_str'] = $thread_link_str;
+ $aTemplate['thread_link_uri'] = $thread_link_uri;
+ $aTemplate['thread_name'] = $thread_name;
$aTemplate['php_self'] = str_replace('&','&',$php_self);
$aTemplate['mailbox'] = $sMailbox;
//FIXME: javascript_on is always assigned to the template object in places like init.php; is there some reason to reassign it here? is there some chance that it was changed? if not, please remove this line!
* $trash_folder
* $sent_folder
* $draft_folder
- * $thread_link_str
+ * $thread_link_uri
+ * $thread_name
* $php_self
* $mailbox
* $enablesort
* $this is the Template class object.
*/
$paginator_str = $this->fetch('paginator.tpl');
- echo $paginator_str . $thread_link_str ."\n"; ?>
+ echo $paginator_str . '<small>[<a href="' . $thread_link_uri
+ . '">' . $thread_name . '</a>]</small>'; ?>
<!-- end paginator and thread link string -->
</td>
<!-- message count string -->