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 fu.
diffs (14 lines):
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);
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog