X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=f271bb65679041028e16a0378f357eb12dd321e2;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=6932d5aa9a51ec80364a80002acc94b35389a290;hpb=e8707dc974e7153ec0ac304144fcbd246ee5db13;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 6932d5aa..f271bb65 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1050,6 +1050,7 @@ function stock_units_list_row($label, $name, $value, $enabled=true) { global $stock_units; + $result = get_all_item_units(); echo "$label\n"; if ($enabled) echo "\n"; @@ -1959,8 +1963,17 @@ function decseps_list_row($label, $name, $value) function themes_list_row($label, $name, $value) { - global $themes; - + global $path_to_root; + + $path = $path_to_root.'/themes/'; + $themes = array(); + $themedir = opendir($path); + while(false !== ($fname = readdir($themedir))) { + if($fname!='.' && $fname!='..' && $fname!='CVS' && is_dir($path.$fname)) { + $themes[] = $fname; + } + } + sort($themes); echo "$label\n"; echo "