Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20629: LJSUP-10498 (Transfer data from old Scra...

Committer: ailyin
LJSUP-10498 (Transfer data from old Scrapbook to new LJ's photoservice (based on Fotki.com))
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2011-11-25 14:04:22 UTC (rev 20628)
+++ trunk/cgi-bin/ljlib.pl	2011-11-25 14:39:55 UTC (rev 20629)
@@ -3640,6 +3640,21 @@
     return $map{$lang};
 }
 
+sub compact_dumper {
+    my (@args) = @_;
+
+    require Data::Dumper;
+
+    local $Data::Dumper::Indent = 0;
+
+    if ( @args <= 1 ) {
+        local $Data::Dumper::Terse = 1;
+        return Data::Dumper::Dumper(@args);
+    }
+
+    return Data::Dumper::Dumper(@args);
+}
+
 package LJ::S1;
 
 use vars qw($AUTOLOAD);

Tags: ailyin, andy, livejournal, 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