Make clear the default, to avoid warnings in the logs. No change in 
actual behavior.

        Patch by kareila. 

diffs (12 lines):

diff -r 374caf99bd84 -r 40d459a3001c cgi-bin/DW/Setting/RandomPaidGifts.pm
--- a/cgi-bin/DW/Setting/RandomPaidGifts.pm     Sat Aug 28 14:06:42 2010 +0800
+++ b/cgi-bin/DW/Setting/RandomPaidGifts.pm     Sat Aug 28 14:08:48 2010 +0800
@@ -36,7 +36,7 @@ sub option {
     my ( $class, $u, $errs, $args ) = @_;
     my $key = $class->pkgkey;
 
-    my $randompaidgifts = $class->get_arg( $args, "randompaidgifts" ) || 
$u->prop( "opt_randompaidgifts" );
+    my $randompaidgifts = $class->get_arg( $args, "randompaidgifts" ) || 
$u->prop( "opt_randompaidgifts" ) || 'Y';
 
     my $ret = LJ::html_check({
         name => "${key}randompaidgifts",
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to