X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=1a7b6729af2b3d4ef16fb427a8d19e23377b0642;hp=e61d793459c7c867aa413e552b40625eec3e073f;hb=91dc9907365d9a8b25836d3c3bf68683af18eb7d;hpb=72596f03a20aff3156e410d35e267ec90ee2b849 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e61d793..1a7b672 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -144,17 +144,17 @@ sub import { $caller->log->debug('Debug messages enabled'); } - my $engine ='Catalyst::Engine::CGI'; + my $engine = 'Catalyst::Engine::CGI'; if ( $ENV{MOD_PERL} ) { require mod_perl; if ( $mod_perl::VERSION >= 1.99 ) { - $engine ='Catalyst::Engine::Apache::MP2'; + $engine = 'Catalyst::Engine::Apache::MP2'; } else { - $engine ='Catalyst::Engine::Apache::MP1'; + $engine = 'Catalyst::Engine::Apache::MP1'; } } @@ -172,12 +172,12 @@ sub import { my $plugin = "Catalyst::Plugin::$_"; $plugin->require; - + if ($@) { $caller->log->error(qq/Couldn't load plugin "$plugin", "$@"/); } else { - push @plugins, " $plugin"; + push @plugins, " + $plugin"; no strict 'refs'; push @{"$caller\::ISA"}, $plugin; }