wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17199: LJSUP-6603. User see "Buy the same user ...

Committer: gprochaev
LJSUP-6603. User see "Buy the same user head" for default userhead

U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-08-26 03:07:29 UTC (rev 17198)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-08-26 06:34:10 UTC (rev 17199)
@@ -72,7 +72,8 @@
     $ret{url_addfriend} = "$LJ::SITEROOT/friends/add.bml?user=" . $u->{user};
 
     $ret{url_buy_userhead} = $LJ::SITEROOT."/shop/userheads.bml";
-    $ret{is_custom_userhead} = $u->custom_usericon ? 1 : 0;
+    my $usericon = $u->custom_usericon;
+    $ret{is_custom_userhead} = scalar grep { $usericon eq $_ } @LJ::DEFAULT_USERHEADS_LIST ? 1 : 0;
 
     my $up = $u->userpic;
     if ($up) {

Tags: bml, livejournal, wisest-owl
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