mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 10:20:45 +02:00
Update view_shortcodes.php
This commit is contained in:
@@ -804,7 +804,7 @@ function sc_buttonsx()
|
||||
// $url = e107::getUrl()->create('forum/thread/reply', array('id' => $thread->threadId));
|
||||
$replyUrl = "<a class='btn btn-primary' href='".$url."'>".LAN_FORUM_2006."</a>";
|
||||
}
|
||||
if ($forum->checkPerm($this->var['thread_forum_id'], 'thread'))
|
||||
if ($forum->checkPerm($this->var['thread_forum_id'], 'post'))
|
||||
{
|
||||
$ntUrl = e107::url('forum','post')."?f=nt&id=". $this->var['thread_forum_id'];
|
||||
// $ntUrl = e107::getUrl()->create('forum/thread/new', array('id' => $thread->threadInfo['thread_forum_id']));
|
||||
@@ -829,7 +829,7 @@ function sc_buttonsx()
|
||||
|
||||
|
||||
$text = '<div class="btn-group">
|
||||
'.$replyUrl.'
|
||||
'.($replyUrl?:LAN_FORUM_1003." ".LAN_FORUM_8013).'
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user