Correctly print link in suspended entry message.
Patch by kareila.
diffs (13 lines):
diff -r 42861785f55c -r 64dbecb7fe3f cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm Thu Jan 13 13:49:11 2011 +0800
+++ b/cgi-bin/LJ/User.pm Sun Jan 16 20:14:09 2011 -0600
@@ -8927,7 +8927,8 @@ sub make_journal {
my $entry = $opts->{ljentry};
if ( $entry && $entry->is_suspended_for( $remote ) ) {
- my $warning = BML::ml( 'error.suspended.entry', { aopts =>
"href='$u->journal_base/'" } );
+ my $journal_base = $u->journal_base;
+ my $warning = BML::ml( 'error.suspended.entry', { aopts =>
"href='$journal_base/'" } );
return $error->( $warning, "403 Forbidden", BML::ml(
'error.suspended.name' ) );
}
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog