From 6157e56c77f4ff908a564c38e82f4be2a6567c5c Mon Sep 17 00:00:00 2001 From: rica-carv Date: Fri, 9 Dec 2016 12:22:09 +0000 Subject: [PATCH] Update view_shortcodes.php --- .../forum/shortcodes/batch/view_shortcodes.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index 868659e4f..3c4a36786 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -797,13 +797,15 @@ function sc_buttonsx() { global $forum, $thread; - if ($forum->checkPerm($this->var['thread_forum_id'], 'post') && $this->var['thread_active']) { $url = e107::url('forum','post')."?f=rp&id=".$this->var['thread_id']."&post=".$thread->threadId; // $url = e107::getUrl()->create('forum/thread/reply', array('id' => $thread->threadId)); - $replyUrl = "".LAN_FORUM_2006.""; } + $replyUrl = "".LAN_FORUM_2006.""; + if ($forum->checkPerm($this->var['thread_forum_id'], 'post')) { $ntUrl = e107::url('forum','post')."?f=nt&id=". $this->var['thread_forum_id']; @@ -828,13 +830,23 @@ function sc_buttonsx() } - $text = '
+/* +$text = '
'.($replyUrl?:"").'