[svn r17542] Minor - Fixed little bug when you add a new forum category see FS#3416

skala
Cristian Fasanando 16 years ago
parent aa4764b6f2
commit 26107d9906
  1. 4
      main/forum/forumfunction.inc.php

@ -91,7 +91,7 @@ function handle_forum_and_forumcategories() {
$post_submit_forum= isset($_POST['SubmitForum']) ? $_POST['SubmitForum'] : '';
$get_id=isset($_GET['id']) ? $_GET['id'] : '';
// Adding a forum category
if (($action_forum_cat=='add' && $_GET['content']=='forumcategory')) {
if (($action_forum_cat=='add' && $_GET['content']=='forumcategory') || $post_submit_cat ) {
show_add_forumcategory_form();
}
// Adding a forum
@ -150,7 +150,7 @@ function handle_forum_and_forumcategories() {
*/
function show_add_forumcategory_form($inputvalues=array()) {
// initiate the object
$form = new FormValidator('forumcategory');
$form = new FormValidator('forumcategory','post');
// settting the form elements
$form->addElement('header', '', get_lang('AddForumCategory'));

Loading…
Cancel
Save