Spelling mistakes, general clean up, few extra tidbits

This commit is contained in:
Ice
2008-08-09 19:34:40 +00:00
parent e9d73746e7
commit 43345190b9
19 changed files with 98 additions and 93 deletions

View File

@@ -27,8 +27,8 @@ function get_db_stat($mode)
switch( $mode )
{
case 'announcmenttotal':
$sql = 'SELECT sizeof(distinct t.topic_id) AS announcment_total
case 'announcementtotal':
$sql = 'SELECT sizeof(distinct t.topic_id) AS announcement_total
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_type = ' . POST_ANNOUNCE . '
AND p.post_id = t.topic_first_post_id';
@@ -54,8 +54,8 @@ function get_db_stat($mode)
switch ( $mode )
{
case 'announcmenttotal':
return $row['announcment_total'];
case 'announcementtotal':
return $row['announcement_total'];
break;
case 'stickytotal':
return $row['sticky_total'];
@@ -130,7 +130,7 @@ $template->assign_vars(array(
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
'S_ANN' => get_db_stat('announcmenttotal'),
'S_ANN' => get_db_stat('announcementtotal'),
'S_SCT' => get_db_stat('stickytotal'),
'S_TOT_ATTACH' => ($config['allow_attachments']) ? get_db_stat('attachmentstotal') : 0,