浏览代码

Fix comp_in_new getting tagged onto ALL the menu links

pdontthink 18 年之前
父节点
当前提交
bfb6ea2078
共有 1 个文件被更改,包括 7 次插入0 次删除
  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');
 }