Permalink
Browse files

Merge pull request #97 from Allineer/patch-3

Move hook afo_save_forum_form_submitted
  • Loading branch information...
2 parents e88d0ac + 08c3786 commit 8bc8358d87def911d7624a311bcd8d2b6dbd7ffe @ashcs ashcs committed Aug 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/forums.php
View
@@ -294,15 +294,15 @@
// Update group permissions for $forum_id
if (isset($_POST['save']))
{
- ($hook = get_hook('afo_save_forum_form_submitted')) ? eval($hook) : null;
-
// Start with the forum details
$forum_name = forum_trim($_POST['forum_name']);
$forum_desc = forum_linebreaks(forum_trim($_POST['forum_desc']));
$cat_id = intval($_POST['cat_id']);
$sort_by = intval($_POST['sort_by']);
$redirect_url = isset($_POST['redirect_url']) && $cur_forum['num_topics'] == 0 ? forum_trim($_POST['redirect_url']) : null;
+ ($hook = get_hook('afo_save_forum_form_submitted')) ? eval($hook) : null;
+
if ($forum_name == '')
message($lang_admin_forums['Must enter forum message']);

0 comments on commit 8bc8358

Please sign in to comment.