diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 16:07:54 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 16:08:36 -0500 |
commit | 483e6de8423236fd6af30de585caa72a507758f1 (patch) | |
tree | eb889e0d2978c3975304a54e2cd7ac4606d73a98 /usr/local/www/index.php | |
parent | e2d90eacaa1d352dbf19d7b9c05b1bc0ee1dc942 (diff) | |
download | pfsense-483e6de8423236fd6af30de585caa72a507758f1.zip pfsense-483e6de8423236fd6af30de585caa72a507758f1.tar.gz |
Rework includes/require. This saves about 4 megabytes.
Simplify get_memory(). Tested on mips/i386
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 09d5a61..f6c6fe5 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -158,7 +158,6 @@ while (false !== ($filename = readdir($dirhandle))) { $widgetfiles[] = $filename; } - ##sort widgets alphabetically sort($widgetfiles); @@ -206,13 +205,11 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") { } $widgetlist = $savedwidgetfiles; -} -##no saved widget sequence found, build default list. -else{ +} else{ + // no saved widget sequence found, build default list. $widgetlist = $widgetfiles; } - ##build list of php include files $phpincludefiles = array(); $directory = "/usr/local/www/widgets/include/"; |