1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Forum: Experimental topic/thread split feature added. (requires e_DEVELOPER to be true in e107_config.php)

This commit is contained in:
Cameron
2016-05-03 20:52:46 -07:00
parent 8d228a08dd
commit 8dbe69c291
7 changed files with 222 additions and 18 deletions

View File

@@ -604,9 +604,9 @@ class plugin_forum_view_shortcodes extends e_shortcode
$url = e107::url('forum','move', array('thread_id'=>$this->postInfo['post_thread']));
$text .= "<li class='text-right'><a href='" . $url."'>".LAN_FORUM_2042." ".$tp->toGlyph('move')."</a></a></li>";
}
else //TODO
elseif(e_DEVELOPER ===true) //TODO
{
// $text .= "<li class='text-right'><a href='" . e107::getUrl()->create('forum/thread/split', array('id' => $this->postInfo['post_id'], 'post'=>$this->postInfo['post_id']))."'>".LAN_FORUM_2043." ".$tp->toGlyph('cut')."</a></li>";
$text .= "<li class='text-right'><a href='" . e107::url('forum','split', array('thread_id'=>$this->postInfo['post_thread'], 'post_id' => $this->postInfo['post_id']))."'>".LAN_FORUM_2043." ".$tp->toGlyph('cut')."</a></li>";
}
}