afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-08-11 07:15 pm

[dw-free] Paid Account Fairy / Random Account Sponsorship should be under the Shop menu

[commit: http://hg.dwscoalition.org/dw-free/rev/6aef6df13192]

http://bugs.dwscoalition.org/show_bug.cgi?id=1603

Add the "Sponsor a User" link under the Shop menu.

Patch by [personal profile] yvi.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/DW/Logic/MenuNav.pm
--------------------------------------------------------------------------------
diff -r 057055a4b0b0 -r 6aef6df13192 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Tue Aug 11 17:49:34 2009 +0000
+++ b/bin/upgrading/en.dat	Tue Aug 11 19:13:05 2009 +0000
@@ -2255,6 +2255,8 @@ menunav.shop.paidtime=Buy a Paid Account
 
 menunav.shop.history=Payment History
 
+menunav.shop.sponsor=Sponsor a User
+
 notification_method.email.title=Email
 
 notification_method.im.title=IM
diff -r 057055a4b0b0 -r 6aef6df13192 cgi-bin/DW/Logic/MenuNav.pm
--- a/cgi-bin/DW/Logic/MenuNav.pm	Tue Aug 11 17:49:34 2009 +0000
+++ b/cgi-bin/DW/Logic/MenuNav.pm	Tue Aug 11 19:13:05 2009 +0000
@@ -239,6 +239,11 @@ sub get_menu_navigation {
                     text => "menunav.shop.gifts",
                     display => LJ::is_enabled( 'payments' ) && $loggedin ? 1 : 0,
                 },
+                {
+                    url => "$LJ::SITEROOT/shop/randomgift",
+                    text => "menunav.shop.sponsor",
+                    display => LJ::is_enabled( 'payments' ) ? 1 : 0,
+                },
             ],
         },
     );
--------------------------------------------------------------------------------