Fix comp_in_new getting tagged onto ALL the menu links
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Dec 2006 07:19:55 +0000 (07:19 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Dec 2006 07:19:55 +0000 (07:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12011 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index 3bd771f..f2a9543 100644 (file)
@@ -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');
 }