From: Janusz Dobrowolski Date: Tue, 11 Mar 2008 21:07:42 +0000 (+0000) Subject: Changed list of themes and list of themes acording to config.php changes X-Git-Tag: v2.4.2~19^2~2192 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=bba815c54136c2c6e3355557c15232f4e206e4ed;p=fa-stable.git Changed list of themes and list of themes acording to config.php changes --- 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 "