[dw-free] Preview breaks when there are tags (in some cases)
[commit: http://hg.dwscoalition.org/dw-free/rev/db5d61eac59c]
http://bugs.dwscoalition.org/show_bug.cgi?id=1437
Don't try to use journal base if we have no user to work with.
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1437
Don't try to use journal base if we have no user to work with.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/preview/entry.bml
-------------------------------------------------------------------------------- diff -r 00f6e0a5698b -r db5d61eac59c htdocs/preview/entry.bml --- a/htdocs/preview/entry.bml Sat Jul 18 09:45:14 2009 -0500 +++ b/htdocs/preview/entry.bml Sat Jul 18 21:14:47 2009 -0500 @@ -194,7 +194,7 @@ my @taglist = (); LJ::Tags::is_valid_tagstring( $POST{prop_taglist}, \@taglist ); if ( @taglist ) { - my $base = $u->journal_base; + my $base = $u ? $u->journal_base : ""; $current{Tags} = join( ', ', map { "<a href='$base/tag/" . LJ::eurl( $_ ) . "'>" . LJ::ehtml( $_ ) . "</a>" } @taglist --------------------------------------------------------------------------------