From: Simon Cozens Date: Mon, 16 Aug 2004 22:51:03 +0000 (+0000) Subject: Unapply this patch. X-Git-Tag: 2.10~196 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=50d74fd61a4ecccaf8d3ecac58ef4ec1f8e48b52;p=maypole.git Unapply this patch. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@166 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 411b07b..b55f7b9 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -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 $@;