Committer: ssafronova
LJ::D correction on non-dev serversU 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();