# HG changeset patch # User Ethan Zonca # Date 2011-01-31 19:59:10 # Node ID c39af79363d8ec3854b486ea1c1145e5e3a6875a # Parent 5b2bfd7450069bd2d363f976eb364e2cef9e2975 Rehash output is now formatted in the web interface diff --git a/admin.php b/admin.php --- a/admin.php +++ b/admin.php @@ -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 . '
' . $result; } else if(isset($_GET['purge'])) {