Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjust Zoom Compose modules to recent change in Template::Zoom regard…
…ing database object.
  • Loading branch information
racke committed Nov 2, 2010
1 parent de3cf18 commit 715c4d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/WellWell/Compose/Component/Zoom.pm
Expand Up @@ -26,6 +26,8 @@ use Template::Zoom;
use Template::Zoom::Specification::XML;
use Template::Zoom::HTML;

use Template::Zoom::Database::Rose;

use WellWell::Filter::Link;

sub new {
Expand Down Expand Up @@ -64,7 +66,7 @@ sub process {
$filters{link} = \&WellWell::Filter::Link::filter;

$zoom = new Template::Zoom (template => $html_object, filters => \%filters,
dbh => $self->{dbh});
database => $self->{database});

return $zoom->process($attributes);
}
Expand Down
4 changes: 3 additions & 1 deletion lib/WellWell/Compose/Engine/Zoom.pm
Expand Up @@ -28,6 +28,8 @@ sub new {
my $class = shift;
my $self = {@_};

$self->{database} = new Template::Zoom::Database::Rose(dbh => $self->{dbh});

bless $self;
return $self;
}
Expand All @@ -38,7 +40,7 @@ sub locate_component {

if (-f "$::Variable->{MV_COMPONENT_DIR}/$name.xml"
&& -f "$::Variable->{MV_COMPONENT_DIR}/$name.html") {
%component_hash = (dbh => $self->{dbh},
%component_hash = (database => $self->{database},
name => $name,
specification => "$::Variable->{MV_COMPONENT_DIR}/$name.xml",
template => "$::Variable->{MV_COMPONENT_DIR}/$name.html");
Expand Down

0 comments on commit 715c4d5

Please sign in to comment.