diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-25 22:59:08 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-25 22:59:08 +0000 |
commit | 9bb8d5423ca0bd11ff7f21d0ebee25f1424af66b (patch) | |
tree | 54d206a6592a5662924fdad131a93c352e3a29ad /etc/inc/easyrule.inc | |
parent | 40b0b541cc76ffb43454d5409794f8945f60b82c (diff) | |
download | pfsense-9bb8d5423ca0bd11ff7f21d0ebee25f1424af66b.zip pfsense-9bb8d5423ca0bd11ff7f21d0ebee25f1424af66b.tar.gz |
Ticket #340. Remove bogus functions. Sort aliases the same way it is done on the aliases page.
Diffstat (limited to 'etc/inc/easyrule.inc')
-rw-r--r-- | etc/inc/easyrule.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/easyrule.inc b/etc/inc/easyrule.inc index f07b67c..2b17ed5 100644 --- a/etc/inc/easyrule.inc +++ b/etc/inc/easyrule.inc @@ -136,7 +136,6 @@ function easyrule_block_alias_add($host, $int = 'wan') { if (!is_array($config['aliases']['alias'])) $config['aliases']['alias'] = array(); - aliases_sort(); $a_aliases = &$config['aliases']['alias']; /* Try to get the ID if the alias already exists */ @@ -173,6 +172,9 @@ function easyrule_block_alias_add($host, $int = 'wan') { else $a_aliases[] = $alias; + // Sort list + $a_aliases = msort($a_aliases, "name"); + return true; } |