summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-05-16 16:00:58 -0400
committerJason Woodward2010-05-16 16:00:58 -0400
commit71ceb59a2980e7ee9260ce694cef615ecc6d6c27 (patch)
treee72aff9b96c27f16a6d65e69dcae83f219ea84e9
parent20d510935916577fd3db47cfd43d178203a5fe30 (diff)
downloadJaos-WebApp-71ceb59a2980e7ee9260ce694cef615ecc6d6c27.tar.gz
pass any options from load_plugin to the plugin register call
-rw-r--r--lib/Jaos/WebApp.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Jaos/WebApp.pm b/lib/Jaos/WebApp.pm
index bede249..5f11a0b 100644
--- a/lib/Jaos/WebApp.pm
+++ b/lib/Jaos/WebApp.pm
@@ -152,13 +152,13 @@ sub renderer
sub load_plugin
{
- my ($self, $plugin_class) = @_;
+ my ($self, $plugin_class, $opts) = @_;
$self->log->debug("loading plugin $plugin_class");
eval {
if (!$plugin_class->can(register)) {
eval "require $plugin_class";
}
- $plugin_class->register($self);
+ $plugin_class->register($self, $opts);
};
if ($@) {
die "Failed to load plugin $plugin_class $!";