Fixed mkpath in Catalyst::Helper
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Helper.pm
index 2af57d0..61b5a2d 100644 (file)
@@ -136,7 +136,7 @@ sub mk_component {
             my @path = split /\:\:/, $name;
             $file = pop @path;
             $path = File::Spec->catdir( $path, @path );
-            mkpath $path;
+            mkpath [$path];
         }
         $file = File::Spec->catfile( $path, "$file.pm" );
         $self->{file} = $file;