]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/View/Base.pm
fixed bug with multiple template roots in TT, fixed bug with frontpage path of /...
[maypole.git] / lib / Maypole / View / Base.pm
index 5ae1bae6e86216ddaa22ea133d80c84e0e4f3e10..753430a20742c292de347c35b7e7dc56ea4124a3 100644 (file)
@@ -10,7 +10,6 @@ sub new { bless {}, shift }    # By default, do nothing.
 
 sub paths {
     my ( $self, $r ) = @_;
-    warn "paths called with @_";
     my $root = $r->config->template_root || $r->get_template_root;
     if(ref($root) ne 'ARRAY') {
        $root = [ $root ];
@@ -23,8 +22,8 @@ sub paths {
              && File::Spec->catdir( $path, $r->model_class->table )
              )
             );
-       push(@output, $path);
        push(@output, File::Spec->catdir( $path, "custom" ));
+       push(@output, $path);
        push(@output, File::Spec->catdir( $path, "factory" ));
     }