Commit cdf2978b authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Simplify cache_time::summary_title().

parent fa6aa8b7
......@@ -79,10 +79,6 @@ function options_validate(&$form, &$form_state) {
}
function summary_title() {
$custom_fields = array('output_lifespan', 'results_lifespan');
foreach ($custom_fields as $field) {
${$field} = $this->options[$field] == 'custom' ? $this->options[$field . '_custom'] : $this->options[$field];
}
$results_lifespan = $this->get_lifespan('results');
$output_lifespan = $this->get_lifespan('output');
return format_interval($results_lifespan, 1) . '/' . format_interval($output_lifespan, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment