aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/acm/cache_file.php2
-rw-r--r--phpBB/posting.php10
-rw-r--r--phpBB/viewforum.php4
3 files changed, 5 insertions, 11 deletions
diff --git a/phpBB/includes/acm/cache_file.php b/phpBB/includes/acm/cache_file.php
index c629bc4aac..e4fc4e85a6 100644
--- a/phpBB/includes/acm/cache_file.php
+++ b/phpBB/includes/acm/cache_file.php
@@ -86,7 +86,7 @@ class acm
function load($varname, $expire_time = 0)
{
- return (exists($varname, $expire_time)) ? $this->vars[$varname] : null;
+ return ($this->exists($varname, $expire_time)) ? $this->vars[$varname] : null;
}
function exists($varname, $expire_time = 0)
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 81a8dde036..9bc5888781 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -468,16 +468,10 @@ if (isset($post))
// post counts for index, etc.
if ($s_mode == 'post')
{
- $sql = 'UPDATE ' . CONFIG_TABLE . "
- SET config_value = '" . ($config['num_topics'] + 1) . "'
- WHERE config_name = 'num_topics'";
- $db->sql_query($sql);
+ set_config('num_topics', $config['num_topics'] + 1);
}
- $sql = 'UPDATE ' . CONFIG_TABLE . "
- SET config_value = '" . ($config['num_posts'] + 1) . "'
- WHERE config_name = 'num_posts'";
- $db->sql_query($sql);
+ set_config('num_posts', $config['num_posts'] + 1);
}
// Topic notification
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 96b44a2a8d..9663db6a14 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -437,7 +437,7 @@ if ($forum_data['forum_postable'])
// Type and folder
$topic_type = '';
- if ($topic_rowset[$i]['topic_status'] == TOPIC_MOVED)
+ if ($topic_rowset[$i]['topic_status'] == ITEM_MOVED)
{
$topic_type = $user->lang['Topic_Moved'] . ' ';
$topic_id = $topic_rowset[$i]['topic_moved_id'];
@@ -596,7 +596,7 @@ include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'viewforum_body.html'
));
-make_jumpbox('viewforum.'.$phpEx . $SID, $forum_id);
+make_jumpbox("viewforum.$phpEx$SID", $forum_id);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);