Skip to content

Commit

Permalink
Add missing "use strict; user warnings" to WellWell::Compose::Compone…
Browse files Browse the repository at this point in the history
…nt::Zoom.

Fix wrong variables in WellWell::Compose::Component::Zoom.
  • Loading branch information
racke committed Oct 25, 2010
1 parent 3e1abf7 commit d2e102b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/WellWell/Compose/Component/Zoom.pm
Expand Up @@ -19,6 +19,9 @@

package WellWell::Compose::Component::Zoom;

use strict;
use warnings;

use Template::Zoom;
use Template::Zoom::Specification::XML;
use Template::Zoom::HTML;
Expand All @@ -41,7 +44,7 @@ sub process {
$xml_spec = new Template::Zoom::Specification::XML;

unless ($spec = $xml_spec->parse_file($self->{specification})) {
die "$0: error parsing $xml_file: " . $xml_spec->error() . "\n";
die "$0: error parsing $self->{specification}: " . $xml_spec->error() . "\n";
}

$html_object = new Template::Zoom::HTML;
Expand All @@ -50,7 +53,7 @@ sub process {

for my $list_object ($html_object->lists()) {
# seed and check input
$list_object->input(\%input);
$list_object->input($attributes);
}

$zoom = new Template::Zoom ($html_object, $self->{dbh});
Expand Down

0 comments on commit d2e102b

Please sign in to comment.