mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2012-07-22 09:14 am

[dw-free] Allow buying icons with points

[commit: http://hg.dwscoalition.org/dw-free/rev/01da0e97eb7d]

Allow buying icons with points

I forgot how the shop works. You set the cost of both and then it tries to
fulfill one or the other. Weird.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/DW/Shop/Item/Icons.pm
--------------------------------------------------------------------------------
diff -r 34e6dc9eadc4 -r 01da0e97eb7d cgi-bin/DW/Shop/Item/Icons.pm
--- a/cgi-bin/DW/Shop/Item/Icons.pm	Sun Jul 22 09:10:31 2012 +0000
+++ b/cgi-bin/DW/Shop/Item/Icons.pm	Sun Jul 22 09:22:37 2012 +0000
@@ -49,7 +49,7 @@
 
     # Set up our initial cost structure
     $self->{cost_cash} = $self->{icons};
-    $self->{cost_points} = 0;
+    $self->{cost_points} = $self->{icons} * 10;
 
     # for now, we can only apply to a user.  in the future this is an obvious way
     # to do gift certificates by allowing an email address here...
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org