diff options
| author | Cesar G <prototech91@gmail.com> | 2013-10-17 20:14:14 -0700 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2013-11-19 07:32:49 -0800 |
| commit | c6473da412d1a572ed80ec10d826239ad5ce5098 (patch) | |
| tree | 7a028bf942614b70bf9bce790891583c043293ad /phpBB/viewtopic.php | |
| parent | 0faafce4ce254ff282de801901372f67ca4f4415 (diff) | |
| download | forums-c6473da412d1a572ed80ec10d826239ad5ce5098.tar forums-c6473da412d1a572ed80ec10d826239ad5ce5098.tar.gz forums-c6473da412d1a572ed80ec10d826239ad5ce5098.tar.bz2 forums-c6473da412d1a572ed80ec10d826239ad5ce5098.tar.xz forums-c6473da412d1a572ed80ec10d826239ad5ce5098.zip | |
[ticket/11672] Replace sprintf() usage with $user->lang().
PHPBB3-11672
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index ffb938a622..75e21b374b 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -501,15 +501,16 @@ if ($config['allow_bookmarks'] && $user->data['is_registered'] && request_var('b if (!$request->is_ajax()) { - $message .= '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $viewtopic_url . '">', '</a>'); + $message .= '<br /><br />' . $user->lang('RETURN_TOPIC', '<a href="' . $viewtopic_url . '">', '</a>'); } } else { $message = $user->lang['BOOKMARK_ERR']; + if (!$request->is_ajax()) { - $message .= '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $viewtopic_url . '">', '</a>'); + $message .= '<br /><br />' . $user->lang('RETURN_TOPIC', '<a href="' . $viewtopic_url . '">', '</a>'); } } meta_refresh(3, $viewtopic_url); |
