You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.0 KiB
63 lines
2.0 KiB
7 years ago
|
diff -aurN a/HTML/Template/IT_Error.php b/HTML/Template/IT_Error.php
|
||
|
--- a/HTML/Template/IT_Error.php 2010-03-10 03:08:10.000000000 -0500
|
||
|
+++ b/HTML/Template/IT_Error.php 2017-08-01 16:44:31.257269180 -0400
|
||
|
@@ -58,8 +58,11 @@
|
||
|
*/
|
||
|
function IT_Error($msg, $file = __FILE__, $line = __LINE__)
|
||
|
{
|
||
|
+ $this->__construct($msg, $file, $line);
|
||
|
+ }
|
||
|
+ function __construct($msg, $file = __FILE__, $line = __LINE__)
|
||
|
+ {
|
||
|
$this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
|
||
|
} // end func IT_Error
|
||
|
|
||
|
} // end class IT_Error
|
||
|
-?>
|
||
|
diff -aurN a/HTML/Template/IT.php b/HTML/Template/IT.php
|
||
|
--- a/HTML/Template/IT.php 2017-08-01 16:40:29.822907534 -0400
|
||
|
+++ b/HTML/Template/IT.php 2017-08-01 16:44:46.515860952 -0400
|
||
|
@@ -409,6 +409,10 @@
|
||
|
*/
|
||
|
function HTML_Template_IT($root = '', $options = null)
|
||
|
{
|
||
|
+ $this->__construct($root, $options);
|
||
|
+ }
|
||
|
+ function __construct($root = '', $options = null)
|
||
|
+ {
|
||
|
if (!is_null($options)) {
|
||
|
$this->setOptions($options);
|
||
|
}
|
||
|
@@ -1184,4 +1188,3 @@
|
||
|
$errorMessages[$value] : $errorMessages[IT_ERROR];
|
||
|
}
|
||
|
} // end class IntegratedTemplate
|
||
|
-?>
|
||
|
diff -aurN a/HTML/Template/ITX.php b/HTML/Template/ITX.php
|
||
|
--- a/HTML/Template/ITX.php 2010-03-10 03:08:10.000000000 -0500
|
||
|
+++ b/HTML/Template/ITX.php 2017-08-01 16:44:41.185654236 -0400
|
||
|
@@ -138,13 +138,17 @@
|
||
|
*/
|
||
|
function HTML_Template_ITX($root = '')
|
||
|
{
|
||
|
+ $this->__construct($root);
|
||
|
+ }
|
||
|
+ function __construct($root = '')
|
||
|
+ {
|
||
|
|
||
|
$this->checkblocknameRegExp = '@' . $this->blocknameRegExp . '@';
|
||
|
|
||
|
$this->functionRegExp = '@' . $this->functionPrefix . '(' .
|
||
|
$this->functionnameRegExp . ')\s*\(@sm';
|
||
|
|
||
|
- $this->HTML_Template_IT($root);
|
||
|
+ parent::__construct($root);
|
||
|
} // end func constructor
|
||
|
|
||
|
/**
|
||
|
@@ -886,4 +890,3 @@
|
||
|
} // end func warning
|
||
|
|
||
|
} // end class HTML_Template_ITX
|
||
|
-?>
|