diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-29 01:18:57 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-29 01:18:57 +0000 |
commit | 7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c (patch) | |
tree | 9dc3802635b2309fa5f8cb96e46ac5cae4a88b00 /phpBB/viewtopic.php | |
parent | 656274cd5798ef9e62c23cdf0c3c1d66d612263d (diff) | |
download | forums-7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c.tar forums-7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c.tar.gz forums-7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c.tar.bz2 forums-7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c.tar.xz forums-7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c.zip |
- fixing some bugs, containing fixes for anonymous username displays, eaccelerator issue, permission trace and a few smaller bugs.
git-svn-id: file:///svn/phpbb/trunk@5858 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index dd26190e07..1351948d28 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -57,6 +57,9 @@ if ($view && !$post_id) if (!$forum_id) { + // Setup user environment so we can process lang string + $user->setup('viewtopic'); + trigger_error('NO_TOPIC'); } } @@ -111,6 +114,9 @@ if ($view && !$post_id) if (!$row) { + // Setup user environment so we can process lang string + $user->setup('viewtopic'); + $message = ($view == 'next') ? 'NO_NEWER_TOPICS' : 'NO_OLDER_TOPICS'; trigger_error($message); } @@ -121,6 +127,9 @@ if ($view && !$post_id) // Check for global announcement correctness? if (!$row['forum_id'] && !$forum_id) { + // Setup user environment so we can process lang string + $user->setup('viewtopic'); + trigger_error('NO_TOPIC'); } else if ($row['forum_id']) @@ -133,6 +142,9 @@ if ($view && !$post_id) // Check for global announcement correctness? if ((!isset($row) || !$row['forum_id']) && !$forum_id) { + // Setup user environment so we can process lang string + $user->setup('viewtopic'); + trigger_error('NO_TOPIC'); } else if (isset($row) && $row['forum_id']) @@ -211,6 +223,10 @@ if (!($topic_data = $db->sql_fetchrow($result))) { redirect("viewtopic.$phpEx$SID&f=$forum_id&t=$topic_id"); } + + // Setup user environment so we can process lang string + $user->setup('viewtopic'); + trigger_error('NO_TOPIC'); } |