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
 
@@ -73,7 +73,7 @@ function main($argc, $argv)
 

	
 
  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");
inc/admin.inc
Show inline comments
 
@@ -251,8 +251,10 @@ function school_crawl(&$school, $semeste
 
 *   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;
0 comments (0 inline, 0 general)