From: <sy...@us...> - 2007-09-16 22:07:24
|
Update of /cvsroot/tikiwiki/tiki/lib/trackers In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3995/lib/trackers Modified Files: trackerlib.php Log Message: [MOD]move get_flags to tikilib to avoid code duplication Index: trackerlib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/trackers/trackerlib.php,v retrieving revision 1.218 retrieving revision 1.219 diff -u -d -r1.218 -r1.219 --- trackerlib.php 31 Aug 2007 12:09:06 -0000 1.218 +++ trackerlib.php 16 Sep 2007 22:07:22 -0000 1.219 @@ -2073,19 +2073,6 @@ } return $newTrackerId; } - function get_flags() { - $flags = array(); - $h = opendir("img/flags/"); - while ($file = readdir($h)) { - if (strstr($file, ".gif")) { - $parts = explode('.', $file); - $flags[] = $parts[0]; - } - } - closedir ($h); - sort($flags, SORT_STRING); - return $flags; - } // look for default value: a default value is 2 consecutive same value function set_default_dropdown_option($field) { for ($io = 0; $io < sizeof($field['options_array']); ++$io) { |