aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-09 16:12:37 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-09 16:12:37 +0000
commit41bfc4391ea0b7980fe37b2a71822339b51e2036 (patch)
treebc7772df0e2559bcb007c789e3a3e6f7fd4fce1a /phpBB/includes/functions_posting.php
parentf4a279e9593f8bf5bef70f2118776070929754bf (diff)
downloadforums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar
forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.gz
forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.bz2
forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.xz
forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.zip
minor fix
also set load_tplcompile to 0 by default now it is quite intensive with the default settings/style. git-svn-id: file:///svn/phpbb/trunk@7514 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 6ee6d5f99d..c266870b87 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2176,8 +2176,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id']);
}
- $params = 'f=' . $data['forum_id'];
- $add_anchor = '';
+ $params = $add_anchor = '';
if ($auth->acl_get('f_noapprove', $data['forum_id']) || $auth->acl_get('m_approve', $data['forum_id']))
{
@@ -2194,7 +2193,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
$params .= '&amp;t=' . $data['topic_id'];
}
- $url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", $params) . $add_anchor;
+ $url = (!$params) ? "{$phpbb_root_path}viewforum.$phpEx" : "{$phpbb_root_path}viewtopic.$phpEx";
+ $url = append_sid($url, 'f=' . $data['forum_id'] . $params) . $add_anchor;
return $url;
}