Alphabetize the apps list

This commit is contained in:
Tony Murray
2016-06-03 21:04:56 -05:00
parent 2ebdb3c083
commit a68687de5e

View File

@@ -2,14 +2,10 @@
<?php <?php
// Load our list of available applications // Load our list of available applications
if ($handle = opendir($config['install_dir'].'/includes/polling/applications/')) { foreach (scandir($config['install_dir'].'/includes/polling/applications/') as $file) {
while (false !== ($file = readdir($handle))) { if (substr($file, -8) == '.inc.php') {
if ($file != '.' && $file != '..' && strstr($file, '.inc.php')) { $applications[] = substr($file, 0, -8);
$applications[] = str_replace('.inc.php', '', $file);
}
} }
closedir($handle);
} }
// Check if the form was POSTed // Check if the form was POSTed