mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
do not call parent constructor for old etemplate
This commit is contained in:
parent
a8af711f11
commit
07f7e61e91
@ -120,11 +120,11 @@ class contact_widget extends etemplate_widget_transformer
|
|||||||
/**
|
/**
|
||||||
* Constructor of the extension
|
* Constructor of the extension
|
||||||
*
|
*
|
||||||
* @param string $ui '' for html
|
* @param string $xml or 'html' for old etemplate
|
||||||
*/
|
*/
|
||||||
function __construct($xml)
|
function __construct($xml)
|
||||||
{
|
{
|
||||||
if (is_a($xml, 'XMLReader') || $xml != '')
|
if (is_a($xml, 'XMLReader') || $xml != '' && $xml != 'html')
|
||||||
{
|
{
|
||||||
parent::__construct($xml);
|
parent::__construct($xml);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user