Changeset - d03043128686
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-01-16 19:52:19
ohnobinki@ohnopublishing.net
Ensure that $verbosity is properly defined for rehashing. Fixes bug 70.
2 files changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
admin/rehash.php
Show inline comments
 
@@ -70,13 +70,13 @@ function main($argc, $argv)
 
      usage();
 
      return 1;
 
    }
 

	
 
  if ($crawl)
 
    {
 
      $ret = school_cache_recreate($crawl_only);
 
      $ret = school_cache_recreate($crawl_only, $verbosity);
 
      if ($ret)
 
	{
 
	  fprintf(STDERR, "error: Unable to successfully crawl schools.\n");
 
	  return 1;
 
	}
 
      else
inc/admin.inc
Show inline comments
 
@@ -248,14 +248,16 @@ function school_crawl(&$school, $semeste
 
 *   Recreate/update the school section autocomplete cache.
 
 *
 
 * \param $crawl_only
 
 *   If non-NULL, an array of school_ids to limit the cache recreation
 
 *   to. Useful for when developing a certain school's crawling
 
 *   function.
 
 * \param $verbosity
 
 *   An integer indicating how loud to be.
 
 */
 
function school_cache_recreate($crawl_only = NULL)
 
function school_cache_recreate($crawl_only = NULL, $verbosity = 1)
 
{
 
  $crawl_semester_year = '2011';
 
  $crawl_semester_season = Semester::SEASON_SPRING;
 

	
 
  $school_id_list = school_list();
 
  if (!$school_id_list)
0 comments (0 inline, 0 general)