Tweaks to site-health and osearch. Also removed a non-directory page.

This commit is contained in:
Beanow 2014-08-09 00:49:00 +02:00
commit b803aa30a0
5 changed files with 21 additions and 176 deletions

View file

@ -287,9 +287,19 @@ function health_details($a, $id)
</script>';
}
//Nice name for registration policy.
switch ($site['reg_policy']) {
case 'REGISTER_OPEN': $policy = "Open"; break;
case 'REGISTER_APPROVE': $policy = "Admin approved"; break;
case 'REGISTER_CLOSED': $policy = "Closed"; break;
default: $policy = $site['reg_policy']; break;
}
$tpl .= file_get_contents('view/health_details.tpl');
return replace_macros($tpl, array(
'$name' => $site['name'],
'$policy' => $policy,
'$site_info' => $site['info'],
'$base_url' => $site['base_url'],
'$health_score' => $site['health_score'],
'$health_name' => health_score_to_name($site['health_score']),