# HG changeset patch # User Nathan Phillip Brink # Date 2011-01-16 19:52:19 # Node ID d03043128686d73213a43de52d26113297640600 # Parent 4ebd39f3f679c02f36badacab21812acbd8d1895 Ensure that $verbosity is properly defined for rehashing. Fixes bug 70. diff --git a/admin/rehash.php b/admin/rehash.php --- a/admin/rehash.php +++ b/admin/rehash.php @@ -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"); diff --git a/inc/admin.inc b/inc/admin.inc --- a/inc/admin.inc +++ b/inc/admin.inc @@ -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;