From: pdontthink Date: Wed, 20 Dec 2006 07:19:55 +0000 (+0000) Subject: Fix comp_in_new getting tagged onto ALL the menu links X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1c4fa572db3cc9d51bb2c4636246e14daef0fd57;p=squirrelmail.git Fix comp_in_new getting tagged onto ALL the menu links git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12011 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index 3bd771f3..f2a95432 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -162,6 +162,13 @@ function makeInternalLink($path, $text, $target='') { $oTemplate->assign('uri', $base_uri . $path); $oTemplate->assign('text', $text); $oTemplate->assign('target', $target); + + // blank the onclick because the template object might + // already contain an onclick value due to having been + // used to show a compose link (when comp_in_new is turned on) + // + $oTemplate->assign('onclick', ''); + return $oTemplate->fetch('hyperlink.tpl'); }