*
* This contains the custom error handler for SquirrelMail.
*
- * @copyright 2005-2018 The SquirrelMail Project Team
+ * @copyright 2005-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
class ErrorHandler {
/**
- * Constructor
+ * Constructor (PHP5 style, required in some future version of PHP)
* @param object $oTemplate Template object
* @param string $sTemplateFile Template containing the error template
* @since 1.5.1
*/
- function ErrorHandler(&$oTemplate, $sTemplateFile) {
+ function __construct(&$oTemplate, $sTemplateFile) {
# echo 'init error handler...';
$this->TemplateName = $sTemplateFile;
$this->Template =& $oTemplate;
$this->Template->assign('delayed_errors', $this->delayed_errors);
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * @param object $oTemplate Template object
+ * @param string $sTemplateFile Template containing the error template
+ * @since 1.5.1
+ */
+ function ErrorHandler(&$oTemplate, $sTemplateFile) {
+ self::__construct($oTemplate, $sTemplateFile);
+ }
+
/**
* Sets the error template
* @since 1.5.1