do not call parent constructor for old etemplate

This commit is contained in:
Ralf Becker 2011-08-27 09:03:32 +00:00
parent a8af711f11
commit 07f7e61e91

View File

@ -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);
} }