Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[livejournal] r19150: LJSUP-8902: To show if tags is included ...

Committer: dnikolaev
LJSUP-8902: To show if tags is included or excluded on Friends edit page

U   trunk/htdocs/friends/edit.bml
Modified: trunk/htdocs/friends/edit.bml
===================================================================
--- trunk/htdocs/friends/edit.bml	2011-05-27 04:03:06 UTC (rev 19149)
+++ trunk/htdocs/friends/edit.bml	2011-05-27 04:13:25 UTC (rev 19150)
@@ -224,7 +224,9 @@
                 my ($friend_tags_mode, $friend_tags_list) = $friends_tags->get_tags($who_u->{userid});
                 if ($friends{$who} && $friends{$who}->{rel} ne 'FO') {
                     if ($friend_tags_list && ref($friend_tags_list) eq 'ARRAY' && scalar(@$friend_tags_list) > 0) {
-                        my $friend_tags_str = LJ::ehtml(join(', ', @$friend_tags_list));
+                        my $friend_tags_str = LJ::FriendsTags->is_allow_mode($friend_tags_mode) ?
+                                                  LJ::ehtml(join(', ', @$friend_tags_list)) :
+                                                  join(', ', map { '<s>' . LJ::ehtml($_) . '</s>' } @$friend_tags_list );
                         $ret .= "<a href='/friends/add.bml?user=$who_u->{user}'>" . 
                                 $friend_tags_str .
                                 "</a>";

Tags: bml, livejournal, wildkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments