Also use different signatures when calling libkolab(xml) read functions
This commit is contained in:
parent
dbe7352ce1
commit
dd2bf15adf
1 changed files with 6 additions and 1 deletions
|
@ -332,7 +332,12 @@ abstract class kolab_format
|
||||||
*/
|
*/
|
||||||
public function load($xml)
|
public function load($xml)
|
||||||
{
|
{
|
||||||
$r = call_user_func($this->libfunc($this->read_func), $xml, $this->libversion());
|
$read_func = $this->libfunc($this->read_func);
|
||||||
|
if (is_array($read_func))
|
||||||
|
$r = call_user_func($read_func, $xml, $this->libversion());
|
||||||
|
else
|
||||||
|
$r = call_user_func($read_func, $xml, false);
|
||||||
|
|
||||||
if (is_resource($r))
|
if (is_resource($r))
|
||||||
$this->obj = new $this->objclass($r);
|
$this->obj = new $this->objclass($r);
|
||||||
else if (is_a($r, $this->objclass))
|
else if (is_a($r, $this->objclass))
|
||||||
|
|
Loading…
Add table
Reference in a new issue