move currency to config file; change units to their own group in settings

This commit is contained in:
Nabeel Shahzad
2018-02-26 20:23:48 -06:00
parent 920b92c096
commit d61ade4482
15 changed files with 154 additions and 39 deletions

View File

@@ -43,7 +43,13 @@ if(!function_exists('list_to_assoc')) {
{
$ret = [];
foreach($list as $item) {
$ret[$item] = $item;
if(substr_count($item, '=')) {
[$item, $title] = explode('=', $item);
} else {
$title = $item;
}
$ret[$item] = $title;
}
return $ret;