aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index b7b3489765..8b6b93cf29 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -36,16 +36,14 @@ $auth->acl($user->data);
// Handle marking posts
if ($mark_read == 'forums')
{
- if ($userdata['user_id'])
+ if ($userdata['user_id'] != ANONYMOUS)
{
markread('markall');
}
- $template->assign_vars(array(
- 'META' => '<meta http-equiv="refresh" content="3;url=' . "index.$phpEx$SID" . '">')
- );
+ meta_refresh(3, "index.$phpEx$SID");
- $message = $user->lang['Forums_marked_read'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . "index.$phpEx$SID" . '">', '</a> ');
+ $message = $user->lang['FORUMS_MARKED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . "index.$phpEx$SID" . '">', '</a> ');
trigger_error($message);
}