kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2011-01-17 02:14 am

[dw-free] suspended entry message has incorrect link back to journal

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

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

Correctly print link in suspended entry message.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
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' ) );
         }
     }
--------------------------------------------------------------------------------