X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=class%2Fmime%2FDisposition.class.php;h=788ca0541b3cbaaa6a83f4bd600fd1ce59dc5011;hb=e063ce26545adbebf2076b4dad82ba622e5c883c;hp=7980183ea01a7e974719a99b7c4504d6ee8f29d6;hpb=30460a05016c7e066ad7b28df7788539e4054a99;p=squirrelmail.git diff --git a/class/mime/Disposition.class.php b/class/mime/Disposition.class.php index 7980183e..788ca054 100644 --- a/class/mime/Disposition.class.php +++ b/class/mime/Disposition.class.php @@ -6,7 +6,7 @@ * This file contains functions needed to handle content disposition headers * in mime messages. See RFC 2183. * - * @copyright 2003-2009 The SquirrelMail Project Team + * @copyright 2003-2021 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -23,14 +23,22 @@ */ 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 @@ -38,7 +46,7 @@ class Disposition { * @since 1.3.1 */ function getProperty($par) { - $value = strtolower($par); + $par = strtolower($par); if (isset($this->properties[$par])) { return $this->properties[$par]; }