Changeset - 23515b1d9eee
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-02-05 22:41:50
ohnobinki@ohnopublishing.net
Disabled PHP's automatic displification of libxml errors when crawling. This hides all of those HTML Entity parsing errors which normaldotcom doesn't like.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
inc/admin.inc
Show inline comments
 
@@ -266,24 +266,27 @@ function school_cache_recreate($crawl_on
 
      return 1;
 
    }
 

	
 
  if ($crawl_only !== NULL)
 
    foreach ($crawl_only as $crawl_only_school_id)
 
      if (!in_array($crawl_only_school_id, $school_id_list))
 
	{
 
	  fprintf(STDERR, "error: Invalid school_id specified for crawling: %s",
 
		  $crawl_only_school_id);
 
	  return 1;
 
	}
 

	
 
  /* hide libxml errors from the console: */
 
  libxml_use_internal_errors(TRUE);
 

	
 
  $schools = array();
 
  $old_school_cache = _school_cache_load();
 
  foreach ($school_id_list as $school_id)
 
    {
 
      $school = school_load($school_id, TRUE);
 
      if (!$school)
 
	{
 
	  fprintf(STDERR, "Error loading school with school_id=%s\n",
 
		  $school_id);
 
	  return 1;
 
	}
 

	
0 comments (0 inline, 0 general)