Changeset - c39af79363d8
[Not reviewed]
default
0 1 0
Ethan Zonca - 15 years ago 2011-01-31 19:59:10
ez@ethanzonca.com
Rehash output is now formatted in the web interface
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
admin.php
Show inline comments
 
@@ -65,12 +65,18 @@ require_once('inc/admin.inc');
 
      if (isset($_REQUEST['rehash_school']))
 
	$crawl_schools = array($_REQUEST['rehash_school']);
 

	
 
      ob_start();
 
      if (school_cache_recreate($crawl_schools))
 
	$result = 'Rehash Failed';
 
      else
 
	$result = 'Rehash Successful';
 
      $hashresult = nl2br(ob_get_contents());
 
      ob_end_clean();
 
      if ($crawl_schools !== NULL)
 
	$result .= ': ' . implode(', ', $crawl_schools);
 

	
 
      // Prepend rehash output
 
      $result = $hashresult . '<br />' . $result;
 
    }
 
    else if(isset($_GET['purge']))
 
      {
0 comments (0 inline, 0 general)