From d1195a5f10cdc4e8cb8a3a5e1c58f46fba9e5f3d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 7 May 2018 17:03:23 +0200 Subject: Hack: Manually copy for new instance without custom value to keep setting from global auto_prepend instance --- it_html.class | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3