Changeset - 63ff4e5ba0ec
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 13 years ago 2012-12-11 02:15:13
ohnobinki@ohnopublishing.net
Relax pagination-parsing regex so that it doesn’t care between CRLF and LF, prerequisite for fixing bug #146 (cornerstone support).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/school.crawl.webadvisor.inc
Show inline comments
 
@@ -606,25 +606,25 @@ function school_crawl_webadvisor_semeste
 
	    $date_start_time = NULL;
 
	  if ($date_end_time !== FALSE)
 
	    $date_end_time = school_crawl_gmmktime($date_end_time, -5 * 60*60) + 24*60*60;
 
	  else
 
	    $date_end_time = NULL;
 

	
 
	  $semester->section_meeting_add($section_id['department'], $section_id['course'], $title, $section_id['section'], $synonym,
 
					 new SectionMeeting($days, $time_start, $time_end, $meeting_place, $meeting_type, $faculty_name, $date_start_time, $date_end_time), 'default', $credits);
 

	
 
	    }
 
	}
 

	
 
      if (!preg_match(';Page ([0-9]+) of ([0-9]+)\</td\>$;m', $html, $pages))
 
      if (!preg_match(';Page ([0-9]+) of ([0-9]+)\\</td\\>;', $html, $pages))
 
	{
 
	  school_crawl_logf($school_crawl_log, 0, 'Unable to determine the number of pages in this resultset');
 
	  break;
 
	}
 

	
 
      school_crawl_logf($school_crawl_log, 8, "%s(): finished page %d of %d with %d courses.", __FUNCTION__, $pages[1], $pages[2], $list_row - 1);
 

	
 
      $form = array(
 
		    'ACTION*Grp:WSS.COURSE.SECTIONS' => 'NEXT',
 
		    );
 
    }
 
    }
0 comments (0 inline, 0 general)