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] changelog2010-03-17 05:02 am

[dw-free] In customization wizard, custom theme layers don't show the x-column layout options

[commit: http://hg.dwscoalition.org/dw-free/rev/5db312ece4e6]

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

Fall back to the parent's uniq value for layouts.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/S2Theme.pm
--------------------------------------------------------------------------------
diff -r 7867263254ab -r 5db312ece4e6 cgi-bin/LJ/S2Theme.pm
--- a/cgi-bin/LJ/S2Theme.pm	Sun Mar 14 10:43:32 2010 -0700
+++ b/cgi-bin/LJ/S2Theme.pm	Wed Mar 17 05:02:42 2010 +0000
@@ -424,7 +424,7 @@ sub new {
     $theme_class = "LJ::S2Theme::$theme_class";
 
     # package name for the layout
-    my $layout_class = $self->{uniq};
+    my $layout_class = $self->{uniq} || $self->{layout_uniq};
     $layout_class =~ s/\/.+//;
     $layout_class =~ s/-/_/g;
     $layout_class = "LJ::S2Theme::$layout_class";
--------------------------------------------------------------------------------