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

[ljcom] r12991: LJSUP-13388: LJ Shop - Styles

Committer: wisest-owl
LJSUP-13388: LJ Shop - Styles

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-12-04 12:00:27 UTC (rev 12990)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-12-04 12:29:46 UTC (rev 12991)
@@ -104,8 +104,12 @@
         # parent class call -> need factory
         my $item = $args{item};
 
-        ## Exception: UserHeads has a 'uh-\d+' coding in a paidexp table
-        $item = ($item =~ m#uh-\d+#) ? 'userhead' : $item;
+        ## Exception: UserHeads has a 'uh-\d+' and Themes has a 'theme-\d+' coding in a paidexp table
+        if ($item =~ m#uh-\d+#) {
+            $item = 'userhead';
+        } elsif ($item =~ m#theme-\d+#) {
+            $item = 'theme';
+        }
         ##
         my $child_class = $class->get_class_for_item($item)
             or return _err("No class for item '$args{item}'");

Tags: ljcom, pm, 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