Happy New Year
[squirrelmail.git] / class / mime / Disposition.class.php
index 6020c91588216d9c0ffc8003cac25dd89ecb5a34..80eb36c619d42fcda9f00167c91027f36d7b01be 100644 (file)
@@ -6,7 +6,7 @@
  * This file contains functions needed to handle content disposition headers 
  * in mime messages. See RFC 2183.
  *
- * @copyright 2003-2015 The SquirrelMail Project Team
+ * @copyright 2003-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
 class Disposition {
     /**
-     * Constructor function
+     * Constructor (PHP5 style, required in some future version of PHP)
      * @param string $name
      */
-    function Disposition($name) {
+    function __construct($name) {
        $this->name = $name;
        $this->properties = array();
     }
 
+    /**
+     * Constructor (PHP4 style, kept for compatibility reasons)
+     * @param string $name
+     */
+    function Disposition($name) {
+       self::__construct($name);
+    }
+
     /**
      * Returns value of content disposition property
      * @param string $par content disposition property name