aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-02-10 16:28:21 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-02-10 16:28:21 +0100
commit995019a992ba5b0dca4cee6082af697552770c18 (patch)
tree7cac05d6cb140eea79f8d504a734a17451da378e /phpBB/memberlist.php
parent3c46aeb0055d88919e1438941c34b97445a17878 (diff)
downloadforums-995019a992ba5b0dca4cee6082af697552770c18.tar
forums-995019a992ba5b0dca4cee6082af697552770c18.tar.gz
forums-995019a992ba5b0dca4cee6082af697552770c18.tar.bz2
forums-995019a992ba5b0dca4cee6082af697552770c18.tar.xz
forums-995019a992ba5b0dca4cee6082af697552770c18.zip
[ticket/12169] Add new option to display profile fields on memberlist
PHPBB3-12169
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 166d4d8959..62e0a13445 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1508,8 +1508,7 @@ switch ($mode)
{
$cp = $phpbb_container->get('profilefields.manager');
- // @todo: Add separate setting for this.
- $cp_row = $cp->generate_profile_fields_template('headlines', false, false, 'field_show_on_pm');
+ $cp_row = $cp->generate_profile_fields_template('headlines', false, false, 'field_show_on_ml');
foreach ($cp_row as $profile_field)
{
$template->assign_block_vars('custom_fields', $profile_field);
@@ -1574,7 +1573,7 @@ switch ($mode)
{
foreach ($user_profile_fields as $field_ident => $profile_field)
{
- if (!$profile_field['data']['field_show_on_pm'])
+ if (!$profile_field['data']['field_show_on_ml'])
{
unset($profile_fields_cache[$user_id][$field_ident]);
}