diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-14 18:56:47 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-14 18:57:08 +0000 |
commit | 4504a76990aebf536c14501cf71907ae546d9c2a (patch) | |
tree | 57cd4267d81555c0e49fc5ff3fdcc5ae45a5872e /usr/local/www/services_captiveportal_filemanager.php | |
parent | 4666b7875109373ab373fd25aff4606c87f32742 (diff) | |
download | pfsense-4504a76990aebf536c14501cf71907ae546d9c2a.zip pfsense-4504a76990aebf536c14501cf71907ae546d9c2a.tar.gz |
Remove all nested functions decalaration seems php does not like them! Make all the nested functions real functions.
Diffstat (limited to 'usr/local/www/services_captiveportal_filemanager.php')
-rwxr-xr-x | usr/local/www/services_captiveportal_filemanager.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/services_captiveportal_filemanager.php b/usr/local/www/services_captiveportal_filemanager.php index 898323b..93bdb9b 100755 --- a/usr/local/www/services_captiveportal_filemanager.php +++ b/usr/local/www/services_captiveportal_filemanager.php @@ -36,12 +36,12 @@ ##|*MATCH=services_captiveportal_filemanager.php* ##|-PRIV -function cpelements_sort() { - global $g, $config; +function cpelementscmp($a, $b) { + return strcasecmp($a['name'], $b['name']); +} - function cpelementscmp($a, $b) { - return strcasecmp($a['name'], $b['name']); - } +function cpelements_sort() { + global $config; usort($config['captiveportal']['element'],"cpelementscmp"); } |