[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 6eedde6e5d3b3a213a4891dc443227f1ffede8a9

Stefan Hornburg racke at rt.icdevgroup.org
Fri Feb 19 19:27:18 UTC 2010


       via  6eedde6e5d3b3a213a4891dc443227f1ffede8a9 (commit)
      from  4ec2f9acb859017b63ee4df59d993a4cdd8b03f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6eedde6e5d3b3a213a4891dc443227f1ffede8a9
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Fri Feb 19 20:26:52 2010 +0100

    fix crash when no plugin is configured

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/Vend/Wiki.pm |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/lib/Vend/Wiki.pm b/lib/Vend/Wiki.pm
index 6cacff1..50ab760 100644
--- a/lib/Vend/Wiki.pm
+++ b/lib/Vend/Wiki.pm
@@ -113,13 +113,15 @@ sub new {
 
 	# register plugins
 	my (@plugins, $plugin);
-	
-	@plugins = @{$self->{plugin}->{array}};
 
-	for (@plugins) {
-		$plugin = $self->{plugin}->{hash}->{$_};
-		$self->load_plugin($plugin);
-		$self->{object}->register_plugin(plugin => $plugin->{object});
+	if (exists $self->{plugin}) {
+		@plugins = @{$self->{plugin}->{array}};
+
+		for (@plugins) {
+			$plugin = $self->{plugin}->{hash}->{$_};
+			$self->load_plugin($plugin);
+			$self->{object}->register_plugin(plugin => $plugin->{object});
+		}
 	}
 	
 	return $self;


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list