Here's what I have for that piece of code right now.
Code:
if ($view == 'attachments') {
$attachment_querystring = '&view=attachments';
} else {
$attachment_querystring = '';
}
$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage&display=$display".iif(isset($highlight), "&highlight=$highlight", "$attachment_querystring"));
What should it actually be?