]> git.decadent.org.uk Git - maypole.git/commitdiff
Unapply this patch.
authorSimon Cozens <simon@simon-cozens.org>
Mon, 16 Aug 2004 22:51:03 +0000 (22:51 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Mon, 16 Aug 2004 22:51:03 +0000 (22:51 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@166 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole.pm

index 411b07bd35c9844ef53e184977a07ea9fb932010..b55f7b924ec8309d148a5e3660212b1bae344771 100644 (file)
@@ -22,8 +22,7 @@ sub setup {
       # Naughty.
       *{$calling_class."::handler"} = sub { Maypole::handler($calling_class, @_) };
     }
-    my $config = {};                                                           
-    $calling_class->config($config); 
+    my $config = $calling_class->config;
     $config->{model} ||= "Maypole::Model::CDBI";
     $config->{model}->require;
     die "Couldn't load the model class $config->{model}: $@" if $@;