mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Fixes #1143 - ForumJump fatal error fix.
This commit is contained in:
@@ -61,7 +61,18 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_forumjump()
|
function sc_forumjump()
|
||||||
{
|
{
|
||||||
return forumjump(); // FIXME - broken in v1 themes
|
$jumpList = $this->forum->forumGetAllowed('view');
|
||||||
|
$text = "<form class='form-inline' method='post' action='".e_REQUEST_URI."'><div class='btn-group'><p>".LAN_FORUM_1017.": <select name='forumjump' class='tbox form-control'>";
|
||||||
|
foreach($jumpList as $key => $val)
|
||||||
|
{
|
||||||
|
$text .= "\n<option value='".e107::url('forum','forum', $val)."'>".$val['forum_name']."</option>";
|
||||||
|
}
|
||||||
|
$text .= "</select><input class='btn btn-default button' type='submit' name='fjsubmit' value='".LAN_GO."' /></p></div></form>";
|
||||||
|
|
||||||
|
return $text;
|
||||||
|
|
||||||
|
|
||||||
|
// return forumjump(); // FIXME - broken in v1 themes
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_userbox()
|
function sc_userbox()
|
||||||
|
Reference in New Issue
Block a user