Permalink
Browse files

Merge pull request #73 from duckduckgo/jag/load

DuckPAN/DDG: Fixed an error with load_class.
  • Loading branch information...
2 parents 3286566 + de1b56a commit 79ddf623866b1a5dd7ee1aa41bf6527a1959597a @moollaza moollaza committed May 30, 2014
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/App/DuckPAN/DDG.pm
View
@@ -49,10 +49,11 @@ sub get_blocks_from_current_dir {
require lib;
lib->import('lib');
print "\nUsing the following DDG instant answers:\n\n";
- for (@args) {
- load_class($_);
- print " - ".$_;
- print " (".$_->triggers_block_type.")\n";
+
+ foreach my $class (@args) {
+ load_class($class);
+ print " - ".$class;
+ print " (".$class->triggers_block_type.")\n";
}
my %blocks_plugins;
for (@args) {

0 comments on commit 79ddf62

Please sign in to comment.