]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
Allow multiple apps on the same site.
[maypole.git] / lib / Maypole.pm
index b55f7b924ec8309d148a5e3660212b1bae344771..411b07bd35c9844ef53e184977a07ea9fb932010 100644 (file)
@@ -22,7 +22,8 @@ sub setup {
       # Naughty.
       *{$calling_class."::handler"} = sub { Maypole::handler($calling_class, @_) };
     }
-    my $config = $calling_class->config;
+    my $config = {};                                                           
+    $calling_class->config($config); 
     $config->{model} ||= "Maypole::Model::CDBI";
     $config->{model}->require;
     die "Couldn't load the model class $config->{model}: $@" if $@;