vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r19345: LJSUP-9142: Remove "Give button" option ...

Committer: vsukhanov
LJSUP-9142: Remove "Give button" option from settings
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-06-23 04:54:42 UTC (rev 19344)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-06-23 06:03:53 UTC (rev 19345)
@@ -1029,7 +1029,7 @@
                 $is_enabled = $opts->{'prop_give_features'};
             } else {
                 my $journalu = LJ::load_user($opts->{'usejournal'}) || $remote;
-                $is_enabled = $journalu && $journalu->prop('give_features');    
+                $is_enabled = $journalu ? 1 : 0; 
             }
 
             $out .= LJ::html_select({

Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-06-23 04:54:42 UTC (rev 19344)
+++ trunk/cgi-bin/ljprotocol.pl	2011-06-23 06:03:53 UTC (rev 19345)
@@ -2189,7 +2189,7 @@
     if (LJ::is_enabled('give_features')) {
         $req->{'props'}->{'give_features'} = ($req->{'props'}->{'give_features'} eq 'enable') ? 1 :
                                              ($req->{'props'}->{'give_features'} eq 'disable') ? 0 :
-                                             $uowner->prop('give_features') ? 1 : 0;
+                                             1; # LJSUP-9142: All users should be able to use give button 
     }
 
     # meta-data

Tags: livejournal, pl, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments