Apply entry style setting to reply pages as well.

        Patch by foxfirefey. 

diffs (24 lines):

diff -r 4ce458a16452 -r 7c72e84a2a8e cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm        Thu Jan 13 12:23:24 2011 +0800
+++ b/cgi-bin/LJ/User.pm        Thu Jan 13 12:38:54 2011 +0800
@@ -5733,7 +5733,7 @@ sub viewing_style {
     my %style_types = ( O => "original", M => "mine", S => "site", L => 
"light" );
 
     my $style;
-    if ( $view eq "entry" ) {
+    if ( $view eq "entry" || $view eq "reply" ) {
         $style = $style_types{ $u->opt_viewentrystyle };
     } else {
         $style = $style_types{ $u->opt_viewjournalstyle };
diff -r 4ce458a16452 -r 7c72e84a2a8e cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl Thu Jan 13 12:23:24 2011 +0800
+++ b/cgi-bin/weblib.pl Thu Jan 13 12:38:54 2011 +0800
@@ -3102,7 +3102,7 @@ LOGIN_BAR
         if ( $view_type eq "mine" and $current_style ne $view_type and $remote 
and not $remote->equals( $journal ) ) {
             push @view_options, "<a href='" . $make_style_link->( $view_type ) 
. "'>" .
                 LJ::Lang::ml( 'web.controlstrip.reloadpage.mystyle2' ) . 
"</a>";
-        } elsif ( $view_type eq "site" and $current_style ne $view_type and 
$view eq "entry" ) {
+        } elsif ( $view_type eq "site" and $current_style ne $view_type and ( 
$view eq "entry" or $view eq "reply" ) ) {
             push @view_options, "<a href='" . $make_style_link->( $view_type ) 
. "'>" .
                 LJ::Lang::ml( 'web.controlstrip.reloadpage.sitestyle' ) . 
"</a>";
         } elsif ( $view_type eq "light" and $current_style ne $view_type ) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to