use mkpath instead of make_path to support older Fole::Path on production server
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 24 Apr 2009 17:03:11 +0000 (17:03 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 24 Apr 2009 17:03:11 +0000 (17:03 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1151 07558da8-63fa-0310-ba24-9fe276d99e06

lib/WebPAC/Output/SWISH.pm

index ab8fc22..5151061 100644 (file)
@@ -13,7 +13,7 @@ __PACKAGE__->mk_accessors(qw(
        index_path
 ));
 
-use File::Path qw/make_path/;
+use File::Path qw/mkpath/;
 use Data::Dump qw/dump/;
 use YAML;
 use JSON;
@@ -63,7 +63,7 @@ sub init {
 
        my $database = $self->database || $log->logdie("need database");
 
-       make_path $dir if ! -e $dir;
+       mkpath $dir if ! -e $dir;
 
        my $path = "$dir/$database.conf";
 
@@ -181,7 +181,7 @@ sub add {
        print $fh "Path-Name: $uri\nContent-Length: $len\nDocument-Type: XML\n\n$xml" or
                die "can't add $uri: $@\n$xml";
 
-       warn "$xml\n";
+#      warn "$xml\n";
 
        return 1;
 }