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

[livejournal] r23467: LJSUP-14608: If user applied style then ...

Committer: wisest-owl
LJSUP-14608: If user applied style then changing it's name don't affect current theme in settings

U   trunk/cgi-bin/LJ/Widget/CurrentTheme.pm
Modified: trunk/cgi-bin/LJ/Widget/CurrentTheme.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/CurrentTheme.pm	2012-12-13 15:07:25 UTC (rev 23466)
+++ trunk/cgi-bin/LJ/Widget/CurrentTheme.pm	2012-12-14 08:10:03 UTC (rev 23467)
@@ -34,7 +34,14 @@
     $ret .= "<h2 class='widget-header'><span>" . $class->ml('widget.currenttheme.title', {'user' => $u->ljuser_display}) . "</span></h2>";
     $ret .= "<div class='theme-current-content pkg'>";
     $ret .= "<img src='" . $theme->preview_imgurl . "' class='theme-current-image' />";
-    $ret .= "<h3>" . $theme->name . "</h3>";
+    my $theme_name = '';
+    my $theme_shop = LJ::Pay::Theme->load_by_s2lid ($theme->s2lid);
+    if ($theme_shop) {
+        $theme_name = $theme_shop->name;
+    } else {
+        $theme_name = $theme->name;
+    }
+    $ret .= "<h3>" . $theme_name . "</h3>";
 
     my $layout_link = "<a href='$LJ::SITEROOT/customize/$getextra${getsep}layoutid=" . $theme->layoutid . "$filterarg$showarg' class='theme-current-layout'><em>$layout_name</em></a>";
     my $special_link_opts = "href='$LJ::SITEROOT/customize/$getextra${getsep}cat=special$filterarg$showarg' class='theme-current-cat'";

Tags: livejournal, 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