diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2013-08-23 23:49:11 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-08-23 23:49:11 +0200 |
| commit | d717203af1263e552886251fbee9b718be45f623 (patch) | |
| tree | f381e51b73b217575e4e016f90bd4fc1242a3f61 /phpBB/posting.php | |
| parent | 2845b153d8e86b80c6b9a8c0869474affb277516 (diff) | |
| download | forums-d717203af1263e552886251fbee9b718be45f623.tar forums-d717203af1263e552886251fbee9b718be45f623.tar.gz forums-d717203af1263e552886251fbee9b718be45f623.tar.bz2 forums-d717203af1263e552886251fbee9b718be45f623.tar.xz forums-d717203af1263e552886251fbee9b718be45f623.zip | |
[ticket/11769] Fix language issues in the doc blocks
PHPBB3-11769
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index d690445fdb..7ab4773df2 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1131,9 +1131,10 @@ if ($submit || $preview || $refresh) $data['topic_replies'] = $post_data['topic_replies']; } - // Only supply the username, when it is a guest posting or we edit and it was supplied, - // otherwise post_data might hold data of the post we quote, in which case - // username is the original poster, not the current one. See: PHPBB3-11769 + // Only return the username when it is either a guest posting or we are editing a post and + // the username was supplied; otherwise post_data might hold the data of the post that is + // being quoted (which could result in the username being returned being that of the quoted + // post's poster, not the poster of the current post). See: PHPBB3-11769 for more information. $post_author_name = ((!$user->data['is_registered'] || $mode == 'edit') && $post_data['username']) ? $post_data['username'] : ''; // The last parameter tells submit_post if search indexer has to be run |
