Commit 884a938a authored by Nigel McNie's avatar Nigel McNie
Browse files

Show the string '1 result' when there is just one search result.

parent 44c8bec9
......@@ -2013,7 +2013,8 @@ function build_pagination($params) {
}
// Output the count of results
$output .= '<div class="results">' . $params['count'] . ' results</div>';
$resultsstr = ($params['count'] == 1) ? get_string('result') : get_string('results');
$output .= '<div class="results">' . $params['count'] . ' ' . $resultsstr . '</div>';
// Close the container div
$output .= '</div>';
......
Supports Markdown
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