feature: Added ability to show links to fixes for validate (#6054)

* feature: Added ability to show links to fixes for validate

* Finish this PR up and add a few more messages
Move collation checks to print_list()
This commit is contained in:
Neil Lathwood
2017-03-02 08:04:29 +00:00
committed by GitHub
parent fd21bee0e2
commit 46198b2caa
2 changed files with 52 additions and 26 deletions

View File

@@ -1481,6 +1481,12 @@ function get_auth_ad_group_filter($groupname)
*/
function print_list($list, $format, $max = 10)
{
if (is_array(current($list))) {
$list = array_map(function ($item) {
return implode(' ', $item);
}, $list);
}
foreach (array_slice($list, 0, $max) as $item) {
printf($format, $item);
}