ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17952: LJ::D correction on non-dev servers

Committer: ssafronova
LJ::D correction on non-dev servers
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2010-12-17 04:33:09 UTC (rev 17951)
+++ trunk/cgi-bin/ljlib.pl	2010-12-17 05:02:04 UTC (rev 17952)
@@ -123,8 +123,10 @@
 
 # if this is a dev server, alias LJ::D to Data::Dumper::Dumper
 if ($LJ::IS_DEV_SERVER) {
-    eval "use Data::Dumper ();";
+    require "Data/Dumper.pm";
     *LJ::D = \&Data::Dumper::Dumper;
+} else {
+    *LJ::D = sub { };
 }
 
 LJ::MemCache::init();

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