mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
EOL should be fixed now
git-svn-id: file:///svn/phpbb/trunk@3315 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a16d1d9aff
commit
9f4cb905d3
3 changed files with 5 additions and 11 deletions
|
@ -86,7 +86,7 @@ class acm
|
||||||
|
|
||||||
function load($varname, $expire_time = 0)
|
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)
|
function exists($varname, $expire_time = 0)
|
||||||
|
|
|
@ -468,16 +468,10 @@ if (isset($post))
|
||||||
// post counts for index, etc.
|
// post counts for index, etc.
|
||||||
if ($s_mode == 'post')
|
if ($s_mode == 'post')
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . CONFIG_TABLE . "
|
set_config('num_topics', $config['num_topics'] + 1);
|
||||||
SET config_value = '" . ($config['num_topics'] + 1) . "'
|
|
||||||
WHERE config_name = 'num_topics'";
|
|
||||||
$db->sql_query($sql);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'UPDATE ' . CONFIG_TABLE . "
|
set_config('num_posts', $config['num_posts'] + 1);
|
||||||
SET config_value = '" . ($config['num_posts'] + 1) . "'
|
|
||||||
WHERE config_name = 'num_posts'";
|
|
||||||
$db->sql_query($sql);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Topic notification
|
// Topic notification
|
||||||
|
|
|
@ -437,7 +437,7 @@ if ($forum_data['forum_postable'])
|
||||||
|
|
||||||
// Type and folder
|
// Type and folder
|
||||||
$topic_type = '';
|
$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_type = $user->lang['Topic_Moved'] . ' ';
|
||||||
$topic_id = $topic_rowset[$i]['topic_moved_id'];
|
$topic_id = $topic_rowset[$i]['topic_moved_id'];
|
||||||
|
@ -596,7 +596,7 @@ include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
'body' => 'viewforum_body.html'
|
'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);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue