Happy New Year
[squirrelmail.git] / class / mime / Language.class.php
index 7aae1f52695b4ad916e21c88fb66d4f9533a1d92..73e338903c210bd0414e6b3015dbed31171df772 100644 (file)
@@ -3,12 +3,11 @@
 /**
  * Language.class.php
  *
- * Copyright (c) 2003-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * This file should contain class needed to handle Language properties in 
  * mime messages. I suspect that it is RFC2231
  *
+ * @copyright 2003-2020 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage mime
  */
 class Language {
     /**
-     * Class constructor
+     * Constructor (PHP5 style, required in some future version of PHP)
      * @param mixed $name
      */
-    function Language($name) {
+    function __construct($name) {
         /** @var mixed */
         $this->name = $name;
         /**
@@ -36,6 +35,12 @@ class Language {
          */
         $this->properties = array();
     }
-}
 
-?>
\ No newline at end of file
+    /**
+     * Constructor (PHP4 style, kept for compatibility reasons)
+     * @param string $name
+     */
+    function Language($name) {
+       self::__construct($name);
+    }
+}