"- 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:
Ralf Becker 2008-05-18 19:16:33 +00:00
parent 941c920783
commit 3f6d4f41c2

View File

@ -176,14 +176,17 @@ class groupdav extends HTTP_WebDAV_Server
{
if (!$GLOBALS['egw_info']['user']['apps'][$app]) continue; // no rights for the given app
$extra_props = 'groupdav_'.$app.'::extra_properties';
$files['files'][] = array(
'path' => '/'.$app.'/',
'props' => call_user_func($app.'_groupdav::extra_properties',array(
$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(
'path' => '/'.$app.'/',
'props' => $props,
);
}
}