Janine (janinedog) wrote in changelog,
Janine
janinedog
changelog

[ljcom] r6968: LJSUP-3594

Committer: janine
LJSUP-3594

New vgift: Leaky Canoe.

U   trunk/bin/upgrading/en_LJ.dat
A   trunk/cgi-bin/LJ/Pay/ShopVGift/leakycanoe.pm
A   trunk/htdocs/img/vgift/leakycanoe-large.gif
A   trunk/htdocs/img/vgift/leakycanoe-small.gif
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2009-01-07 21:12:33 UTC (rev 6967)
+++ trunk/bin/upgrading/en_LJ.dat	2009-01-08 15:13:32 UTC (rev 6968)
@@ -3060,6 +3060,8 @@
 
 pay.vgift.kwanzaa=Kwanzaa Candles
 
+pay.vgift.leakycanoe=Leaky Canoe
+
 pay.vgift.leprechaun=Leprechaun
 
 pay.vgift.lolly=Lollipop
@@ -4204,6 +4206,10 @@
 
 vgift.kwanzaa.fromuser=Kwanzaa candles from [[user]]
 
+vgift.leakycanoe.anon=Do Another
+
+vgift.leakycanoe.fromuser=Do Another
+
 vgift.leprechaun.anon=Dance like a leprechaun!
 
 vgift.leprechaun.fromuser=Dance like a leprechaun!

Added: trunk/cgi-bin/LJ/Pay/ShopVGift/leakycanoe.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/ShopVGift/leakycanoe.pm	                        (rev 0)
+++ trunk/cgi-bin/LJ/Pay/ShopVGift/leakycanoe.pm	2009-01-08 15:13:32 UTC (rev 6968)
@@ -0,0 +1,19 @@
+package LJ::Pay::ShopVGift::leakycanoe;
+use base 'LJ::Pay::ShopVGift';
+use strict;
+
+sub is_free {
+    my $self = shift;
+
+    my $u = LJ::get_remote();
+    return 0 unless $u;
+    return 1 if LJ::check_priv($u, "supporthelp");
+    return 1 if LJ::check_priv($u, "supportviewscreened");
+
+    my $lj_core = LJ::load_user("lj_core");
+    return 1 if $lj_core && $lj_core->has_friend($u);
+
+    return 0;
+}
+
+1;

Added: trunk/htdocs/img/vgift/leakycanoe-large.gif
===================================================================
(Binary files differ)


Property changes on: trunk/htdocs/img/vgift/leakycanoe-large.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/htdocs/img/vgift/leakycanoe-small.gif
===================================================================
(Binary files differ)


Property changes on: trunk/htdocs/img/vgift/leakycanoe-small.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

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