*** calais.admin.inc	Fri May  1 13:48:43 2009
--- calais.admin-patched.inc	Fri May  1 13:36:21 2009
***************
*** 408,419 ****
    if (!isset($context['sandbox']['progress'])) {
      $context['sandbox']['progress'] = 0;
      if(isset($lastnid)) {
!       dpm("Picking up where we left off: $lastnid");
        $context['sandbox']['current_node'] = $lastnid;
        $context['sandbox']['max'] = db_result(db_query("SELECT COUNT(DISTINCT nid) FROM {node} WHERE type = '%s' and nid > %d", $type, $lastnid));
      }
      else {
!       dpm('Start at the beginning');
        $context['sandbox']['current_node'] = 0;
        $context['sandbox']['max'] = db_result(db_query("SELECT COUNT(DISTINCT nid) FROM {node} WHERE type = '%s'", $type));
      }
--- 408,423 ----
    if (!isset($context['sandbox']['progress'])) {
      $context['sandbox']['progress'] = 0;
      if(isset($lastnid)) {
!       if (module_exists('devel')) {
!         dpm("Picking up where we left off: $lastnid");
!       }
        $context['sandbox']['current_node'] = $lastnid;
        $context['sandbox']['max'] = db_result(db_query("SELECT COUNT(DISTINCT nid) FROM {node} WHERE type = '%s' and nid > %d", $type, $lastnid));
      }
      else {
!       if (module_exists('devel')) {
!         dpm('Start at the beginning');
!       }
        $context['sandbox']['current_node'] = 0;
        $context['sandbox']['max'] = db_result(db_query("SELECT COUNT(DISTINCT nid) FROM {node} WHERE type = '%s'", $type));
      }
