From 1c4fa572db3cc9d51bb2c4636246e14daef0fd57 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 20 Dec 2006 07:19:55 +0000 Subject: [PATCH] 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 --- functions/page_header.php | 7 +++++++ 1 file changed, 7 insertions(+) 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'); } -- 2.25.1