Browse Source

Fix comp_in_new getting tagged onto ALL the menu links

pdontthink 18 years ago
parent
commit
bfb6ea2078
1 changed files with 7 additions and 0 deletions
  1. 7 0
      functions/page_header.php

+ 7 - 0
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');
 }