Committer: gprochaev
LJSUP-6619U trunk/bin/upgrading/en_LJ.dat U trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
Modified: trunk/bin/upgrading/en_LJ.dat =================================================================== --- trunk/bin/upgrading/en_LJ.dat 2010-08-26 04:00:01 UTC (rev 9400) +++ trunk/bin/upgrading/en_LJ.dat 2010-08-26 04:50:32 UTC (rev 9401) @@ -5226,6 +5226,8 @@ shop.error.userhead.nothing_selected=You didn't select the userhead +shop.error.userhead.not_access=suspended, purged, deleted and memorial not available to buy userhead + shop.error.global.cannot_load_cart=Cannot load cart shop.error.global.not_your_cart=You are trying to view someone other's cart, and you can't do that. Try <a href="/shop/?cart=new">creating a new one</a>. Modified: trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm 2010-08-26 04:00:01 UTC (rev 9400) +++ trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm 2010-08-26 04:50:32 UTC (rev 9401) @@ -91,6 +91,8 @@ ? LJ::load_user(LJ::Request->get_param('giftto')) : LJ::get_remote(); + $self->raise_errors(LJ::Lang::ml('shop.error.userhead.not_access')) if $recipient && !$recipient->is_visible; + die "Unknown recipient" unless $recipient; my $cart = $self->try_get_cart;