fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-23 11:12 am

[dw-free] Previewing a style can use an inappropriate wizard layer

[commit: http://hg.dwscoalition.org/dw-free/rev/48959df3692d]

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

Explicitly set the user layer, so that old user layers don't interfere the
next time you try to preview.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/LJ/S2Theme.pm
--------------------------------------------------------------------------------
diff -r 7c7dc63ef76e -r 48959df3692d cgi-bin/LJ/S2Theme.pm
--- a/cgi-bin/LJ/S2Theme.pm	Mon Aug 23 18:49:44 2010 +0800
+++ b/cgi-bin/LJ/S2Theme.pm	Mon Aug 23 19:12:30 2010 +0800
@@ -673,6 +673,7 @@ sub get_preview_styleid {
         layout => $self->layoutid,
         i18n   => $i18n_layer,
         theme  => $self->themeid,
+        user   => 0,
     );
     LJ::S2::set_style_layers($u, $styleid, %layers);
 
--------------------------------------------------------------------------------

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