From: Ralf Ertzinger Date: Wed, 24 Apr 2013 11:38:33 +0000 (+0200) Subject: Use API for active connectors X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=b8512b6d8f6e4378f5f0942256a4505a72cc7bc9 Use API for active connectors --- diff --git a/videosite/Base.pm b/videosite/Base.pm index a081dce..3c3dd70 100644 --- a/videosite/Base.pm +++ b/videosite/Base.pm @@ -11,8 +11,6 @@ use Data::Dumper; sub new { my $class = shift; my $self = {'_DEBUG' => 0, - '_CONNECTORS' => sub { return ({ 'name' => 'direct', - 'schemas' => {} }) }, '_CONNECTOR' => undef, API => { io => sub { printf(@_) }, @@ -261,7 +259,7 @@ sub decode_querystring { sub connectors { my $self = shift; - return $self->{'_CONNECTORS'}->(); + return $self->{_API}->{connectors}->(); } sub selectconn {