--- views_periodic_execution.module	2011-02-24 21:13:49.000000000 -0500
+++ views_periodic_execution.new.module	2011-06-14 17:21:31.000000000 -0400
@@ -1,5 +1,6 @@
 <?php
 
+// $Id: views_periodic_execution.module,v 1.4.2.1 2010/11/12 16:59:55 darthsteven Exp $
 
 /**
  * Implementation of hook_views_menu().
@@ -83,7 +84,7 @@ function views_periodic_execution_get_co
       foreach ($view->display as $id => $display) {
         $display_plugin = views_fetch_plugin_data('display', $display->display_plugin);
         // This next line is PHP5 only:
-        if (views_include_handler($display_plugin, 'display') && is_subclass_of($display_plugin['handler'], $display_type)) {
+       if (views_include_handler($display_plugin['handler'], $display_plugin, 'display') && is_subclass_of($display_plugin['handler'], $display_type)) {
           $enabled_views[] = array('view' => $view->name, 'display' => $id);
         }
       }
@@ -146,7 +147,7 @@ function views_periodic_execution_cron()
     // The first condition here allows us to have displays that are never automatically executed:
     if (($interval >= 0) && time() - $last_executed > $interval) {
       // Execute the view:
-      $view->execute_display();
+      $view->execute_display($view_data['display']);
     }
   }
 }
 
--- views_periodic_execution.report.inc	2011-02-24 21:13:49.000000000 -0500
+++ views_periodic_execution.report.new.inc	2011-06-14 17:21:41.000000000 -0400
@@ -1,5 +1,6 @@
 <?php
 
+// $Id: views_periodic_execution.report.inc,v 1.2.2.1 2010/11/12 16:59:55 darthsteven Exp $
 
 /**
  * Build and display a report of periodically executed views
@@ -26,7 +27,7 @@ function views_periodic_execution_report
     foreach ($view->display as $id => $display) {
       $display_plugin = views_fetch_plugin_data('display', $display->display_plugin);
       // This next line is PHP5 only:
-      if (views_include_handler($display_plugin, 'display') && is_subclass_of($display_plugin['handler'], $display_type)) {
+    if (views_include_handler($display_plugin['handler'], $display_plugin, 'display') && is_subclass_of($display_plugin['handler'], $display_type)) {
 
         $key = empty($views[$view->name]->disabled) ? 'A' : 'D';
         $key .= ':' . $view->name;
