mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
"- call_user_func requires php5.2 and we want to be php5.1 compatible
- also allowing handler to not define an extra_properties method"
This commit is contained in:
parent
941c920783
commit
3f6d4f41c2
@ -176,14 +176,17 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
{
|
{
|
||||||
if (!$GLOBALS['egw_info']['user']['apps'][$app]) continue; // no rights for the given app
|
if (!$GLOBALS['egw_info']['user']['apps'][$app]) continue; // no rights for the given app
|
||||||
|
|
||||||
$extra_props = 'groupdav_'.$app.'::extra_properties';
|
$props = array(
|
||||||
|
self::mkprop('displayname',$this->translation->convert(lang($app),$this->egw_charset,'utf-8')),
|
||||||
|
self::mkprop('resourcetype',$this->_resourcetype($app)),
|
||||||
|
);
|
||||||
|
if (method_exists($app.'_groupdav','extra_properties'))
|
||||||
|
{
|
||||||
|
$props = ExecMethod($app.'_groupdav::extra_properties',$props);
|
||||||
|
}
|
||||||
$files['files'][] = array(
|
$files['files'][] = array(
|
||||||
'path' => '/'.$app.'/',
|
'path' => '/'.$app.'/',
|
||||||
'props' => call_user_func($app.'_groupdav::extra_properties',array(
|
'props' => $props,
|
||||||
self::mkprop('displayname',$this->translation->convert(lang($app),$this->egw_charset,'utf-8')),
|
|
||||||
self::mkprop('resourcetype',$this->_resourcetype($app)),
|
|
||||||
)),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user