version 1.370.2.7, 2023/09/15 23:02:08
|
version 1.370.2.8, 2024/07/03 22:14:18
|
Line 1264 sub build_posting_display {
|
Line 1264 sub build_posting_display {
|
@{$$usernamesort{$contrib{$idx.':senderdomain'}}{$contrib{$idx.':sendername'}}} = ("$idx"); |
@{$$usernamesort{$contrib{$idx.':senderdomain'}}{$contrib{$idx.':sendername'}}} = ("$idx"); |
} |
} |
# Set up for sorting by last name, then first name |
# Set up for sorting by last name, then first name |
my %names = &Apache::lonnet::get('environment', |
my %names = &Apache::loncommon::getnames($contrib{$idx.':sendername'}, |
['firstname','lastname'],$contrib{$idx.':senderdomain'}, |
$contrib{$idx.':senderdomain'}); |
,$contrib{$idx.':sendername'}); |
|
my $lastname = $names{'lastname'}; |
my $lastname = $names{'lastname'}; |
my $firstname = $names{'firstname'}; |
my $firstname = $names{'firstname'}; |
if ($lastname eq '') { |
if ($lastname eq '') { |
Line 1646 sub get_post_contents {
|
Line 1645 sub get_post_contents {
|
$$contrib{$idx.':sendername'}, |
$$contrib{$idx.':sendername'}, |
$$contrib{$idx.':senderdomain'}); |
$$contrib{$idx.':senderdomain'}); |
$$screenname=$$contrib{$idx.':screenname'}; |
$$screenname=$$contrib{$idx.':screenname'}; |
$$showaboutme = &Apache::lonnet::usertools_access($$contrib{$idx.':sendername'}, |
$$showaboutme = &Apache::loncommon::aboutme_on($$contrib{$idx.':sendername'}, |
$$contrib{$idx.':senderdomain'}, |
$$contrib{$idx.':senderdomain'}); |
'aboutme'); |
|
my $sender = $$plainname; |
my $sender = $$plainname; |
if ($$showaboutme) { |
if ($$showaboutme) { |
$sender = &Apache::loncommon::aboutmewrapper( |
$sender = &Apache::loncommon::aboutmewrapper( |