Advertisement
Guest User

Untitled

a guest
May 17th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Index: plugins/ActionStreams/lib/ActionStreams/Event.pm
  2. ===================================================================
  3. --- plugins/ActionStreams/lib/ActionStreams/Event.pm (revision 632)
  4. +++ plugins/ActionStreams/lib/ActionStreams/Event.pm (working copy)
  5. @@ -4,7 +4,6 @@
  6. use strict;
  7. use base qw( MT::Object MT::Taggable MT::Scorable );
  8. our @EXPORT_OK = qw( classes_for_type );
  9. -use Web::Scraper;
  10. use HTTP::Date qw( str2time );
  11.  
  12. our $hide_if_first_update = 0;
  13. @@ -116,6 +115,7 @@
  14. }
  15. }
  16. elsif (my $scraper_params = $stream->{scraper}) {
  17. + require Web::Scraper;
  18. my ($foreach, $get) = @$scraper_params{qw( foreach get )};
  19. my $scraper = scraper {
  20. process $foreach, 'res[]' => scraper {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement