From dfc1c8e1e785ba1fb65f9572f4fdfda490b6fc3b Mon Sep 17 00:00:00 2001 From: Jamie Furness Date: Sun, 1 Aug 2010 13:26:58 +0100 Subject: [PATCH] Localising the new forum text when adding a new forum, spotted by adaur. #88 --- admin_forums.php | 2 +- lang/English/admin_forums.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin_forums.php b/admin_forums.php index 3c388ac1b..1d1c4768f 100644 --- a/admin_forums.php +++ b/admin_forums.php @@ -29,7 +29,7 @@ if ($add_to_cat < 1) message($lang_common['Bad request']); - $db->query('INSERT INTO '.$db->prefix.'forums (cat_id) VALUES('.$add_to_cat.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error()); + $db->query('INSERT INTO '.$db->prefix.'forums (forum_name, cat_id) VALUES(\''.$db->escape($lang_admin_forums['New forum']).'\', '.$add_to_cat.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error()); // Regenerate the quick jump cache if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) diff --git a/lang/English/admin_forums.php b/lang/English/admin_forums.php index f13876de5..4a0e9dfbc 100644 --- a/lang/English/admin_forums.php +++ b/lang/English/admin_forums.php @@ -10,6 +10,7 @@ 'Perms reverted redirect' => 'Permissions reverted to defaults. Redirecting …', 'Must enter name message' => 'You must enter a forum name.', 'Must be integer message' => 'Position must be a positive integer value.', +'New forum' => 'New forum', // Entry page 'Add forum head' => 'Add forum',