Warnings always on for dev servers.

        Patch by kareila. 

diffs (25 lines):

diff -r c3f4335a9370 -r da088bf04ac0 cgi-bin/modperl_subs.pl
--- a/cgi-bin/modperl_subs.pl   Fri Oct 29 14:09:38 2010 +0800
+++ b/cgi-bin/modperl_subs.pl   Fri Oct 29 14:20:00 2010 +0800
@@ -26,7 +26,7 @@ use LJ::Config;
 
 BEGIN {
     LJ::Config->load;
-    $^W = 1 if $LJ::IS_DEV_SERVER && $LJ::ENABLE_GLOBAL_WARNINGS;
+    $^W = 1 if $LJ::IS_DEV_SERVER;
 }
 
 use Apache::LiveJournal;
diff -r c3f4335a9370 -r da088bf04ac0 doc/config-local.pl.txt
--- a/doc/config-local.pl.txt   Fri Oct 29 14:09:38 2010 +0800
+++ b/doc/config-local.pl.txt   Fri Oct 29 14:20:00 2010 +0800
@@ -22,9 +22,6 @@
 
     # keep this enabled only if this site is a development server
     $IS_DEV_SERVER = 1;
-
-    # turn on warnings for all files. Will turn up a lot of stuff in the logs.
-    $ENABLE_GLOBAL_WARNINGS = 0;
 
     # home directory
     $HOME = $ENV{'LJHOME'};
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to