* The SquirrelMail (Foowd) template implementation.
* Derived from the foowd template implementation and adapted
* for squirrelmail
- * @copyright 2005-2012 The SquirrelMail Project Team
+ * @copyright 2005-2024 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
/**
- * Constructor
+ * Constructor (PHP5 style, required in some future version of PHP)
*
* Please do not call directly. Use Template::construct_template().
*
* @param string $template_id the template ID
*
*/
- function PHP_Template($template_id) {
+ function __construct($template_id) {
//FIXME: find a way to test that this is ONLY ever called
// from parent's construct_template() method (I doubt it
// is worth the trouble to parse the current stack trace)
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ *
+ * Please do not call directly. Use Template::construct_template().
+ *
+ * @param string $template_id the template ID
+ *
+ */
+ function PHP_Template($template_id) {
+ self::__construct($template_id);
+ }
+
/**
* Assigns values to template variables
*