summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/list_topics.tpl5
-rw-r--r--view_board_inc.php2
2 files changed, 3 insertions, 4 deletions
diff --git a/templates/list_topics.tpl b/templates/list_topics.tpl
index fdbc637..fbd6da2 100644
--- a/templates/list_topics.tpl
+++ b/templates/list_topics.tpl
@@ -48,10 +48,7 @@
{if !$gBitSystem->isFeatureActive('boards_thread_verbrose')}
<tr>
<th style="width:5%;">
- {form class="form-inline" action="`$comments_return_url`#editcomments"}
- <input type="hidden" name="post_comment_request" value="1" />
- <input type="submit" class="btn btn-xs btn-primary" value="{tr}New Topic{/tr}" />
- {/form}
+ <a href="{$comments_return_url}&amp;post_comment_request=1#editcomments" class="btn btn-primary btn-xs">{tr}New Topic{/tr}</a>
</th>
<th style="width:40%;">{tr}Title{/tr}</th>
<th style="width:5%;">{tr}Replies{/tr}</th>
diff --git a/view_board_inc.php b/view_board_inc.php
index 4e982e8..8f626e7 100644
--- a/view_board_inc.php
+++ b/view_board_inc.php
@@ -25,6 +25,8 @@ if ( @BitBase::verifyId( $_REQUEST['migrate_board_id'] ) ) {
}
}
+$_REQUEST['board_id'] = BitBase::getParameter( $_REQUEST, 'b' );
+
// Load up the board
require_once( BOARDS_PKG_PATH.'lookup_inc.php' );