fsf changes, meant to be rebased on upstream
[squirrelmail.git] / class / template / PHP_Template.class.php
index 92399abc0ebad4f3eadf9e988cd99f3212709d86..2727cf909a6717b8d3985caccd60c3cbe39410e9 100644 (file)
@@ -9,7 +9,7 @@
   * 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
@@ -40,14 +40,14 @@ class PHP_Template extends Template
 
 
     /**
-      * 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)
@@ -58,6 +58,18 @@ class PHP_Template extends Template
 
     }
 
+    /**
+      * 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
       *