mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
firewall: improve alias description/preview #5199
This commit is contained in:
parent
c9c0055b8b
commit
35ec0ae1c7
@ -156,8 +156,12 @@ class Util
|
||||
}
|
||||
|
||||
if (!empty($alias['content'])) {
|
||||
$tmp = array_slice(explode("\n", $alias['content']), 0, 10);
|
||||
asort($tmp);
|
||||
$content = explode("\n", $alias['content']);
|
||||
$tmp = array_slice($content, 0, 10);
|
||||
asort($tmp, SORT_NATURAL);
|
||||
if (count($content) > 10) {
|
||||
$tmp[] = '[...]';
|
||||
}
|
||||
self::$aliasDescriptions[$alias['name']] .= implode("<br/>", $tmp);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user