fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-29 04:11 pm

[dw-free] sitefeeds style stylesheet not being applied

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

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

If we have no styleid (special styles, ones built up manually and not owned
by anyone), treat them specially -- let the logic fall through to them so
they can use their own stylesheets.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 8fe402073236 -r ea4f943ae4e9 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Thu Jul 29 09:53:05 2010 -0500
+++ b/cgi-bin/LJ/User.pm	Thu Jul 29 09:11:29 2010 -0700
@@ -8423,7 +8423,9 @@ sub make_journal {
             }
 
             # resource URLs have the styleid in it
-            if ($view eq "res" && $opts->{'pathextra'} =~ m!^/(\d+)/!) {
+            # unless they're a special style, like sitefeeds (which have no styleid)
+            # in which case, let them fall through. Something else will handle it
+            if ( $view eq "res" && $opts->{'pathextra'} =~ m!^/(\d+)/! && $1 ) {
                 return (2, $1);
             }
 
--------------------------------------------------------------------------------

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