mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 12:23:50 +01:00
"can NOT call methods of common class static in 1.6 (available in trunk)"
This commit is contained in:
parent
dbcd815fb5
commit
da7f122896
@ -117,7 +117,7 @@ class addressbook_merge // extends bo_merge
|
|||||||
switch($field['type'])
|
switch($field['type'])
|
||||||
{
|
{
|
||||||
case 'select-account':
|
case 'select-account':
|
||||||
if ($value) $value = common::grab_owner_name($value);
|
if ($value) $value = $GLOBALS['egw']->common->grab_owner_name($value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'select':
|
case 'select':
|
||||||
@ -139,8 +139,8 @@ class addressbook_merge // extends bo_merge
|
|||||||
{
|
{
|
||||||
$format = $field['len'] ? $field['len'] : ($field['type'] == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s');
|
$format = $field['len'] ? $field['len'] : ($field['type'] == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s');
|
||||||
$date = array_combine(preg_split('/[\\/. :-]/',$format),preg_split('/[\\/. :-]/',$value));
|
$date = array_combine(preg_split('/[\\/. :-]/',$format),preg_split('/[\\/. :-]/',$value));
|
||||||
$value = common::dateformatorder($date['Y'],$date['m'],$date['d'],true);
|
$value = $GLOBALS['egw']->common->dateformatorder($date['Y'],$date['m'],$date['d'],true);
|
||||||
if (isset($date['H'])) $value .= ' '.common::formattime($date['H'],$date['i']);
|
if (isset($date['H'])) $value .= ' '.$GLOBALS['egw']->common->formattime($date['H'],$date['i']);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user