Skip to content

Commit

Permalink
Localising the new forum text when adding a new forum, spotted by ada…
Browse files Browse the repository at this point in the history
…ur. #88
  • Loading branch information
reines committed Aug 1, 2010
1 parent 42f340a commit dfc1c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin_forums.php
Expand Up @@ -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'))
Expand Down
1 change: 1 addition & 0 deletions lang/English/admin_forums.php
Expand Up @@ -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',
Expand Down

0 comments on commit dfc1c8e

Please sign in to comment.