Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22431: LJSUP-12944: Suppress JS variable overri...

Committer: anazarov
LJSUP-12944: Suppress JS variable override warning on production
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-07-12 13:18:52 UTC (rev 22430)
+++ trunk/cgi-bin/weblib.pl	2012-07-12 14:06:13 UTC (rev 22431)
@@ -2498,9 +2498,8 @@
     }
 
     while (my ($k, $v) = each %vars) {
-        if ( exists $LJ::JSVAR{$k} ) {
-            warn 'JS Variable override: '. $k;
-        }
+        warn 'JS Variable override: '. $k
+            if $LJ::IS_DEV_SERVER and exists $LJ::JSVAR{$k};
 
         $LJ::JSVAR{$k} = $v;
     }

Tags: anazarov, livejournal, nfokz, pl
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