summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2018-05-07 17:03:23 +0200
committerChristian Schneider2018-05-07 17:03:23 +0200
commitd1195a5f10cdc4e8cb8a3a5e1c58f46fba9e5f3d (patch)
treeac47ae584d7a6fb16ee4b1242c06c7a09d2c894b
parent7f41132b49ab09232a653cc6d2f3b2e14d0a139b (diff)
downloaditools-cs/xmlnamespace.tar.gz
itools-cs/xmlnamespace.tar.bz2
itools-cs/xmlnamespace.zip
Hack: Manually copy for new instance without custom value to keep setting from global auto_prepend instancecs/xmlnamespace
-rw-r--r--it_html.class4
1 files changed, 4 insertions, 0 deletions
diff --git a/it_html.class b/it_html.class
index 7e24021..f433e14 100644
--- a/it_html.class
+++ b/it_html.class
@@ -101,6 +101,10 @@ function __construct($p = array())
'xml' => ''
);
+ # @@@ Hack: Manually copy for new instance without custom value to keep setting from global auto_prepend instance
+ if (!isset($p['error_on_redefine']) && isset($GLOBALS[$this->p['name']]))
+ $this->p['error_on_redefine'] = $GLOBALS[$this->p['name']]->p['error_on_redefine'];
+
# Since name is given as param, it is our duty to store it, not our caller's.
$GLOBALS[$this->p['name']] =& $this;