X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Faddressbook.php;h=77b15f263b261c97260c3a7de936b080fb32a682;hp=52f15961d86d2a0bd28806050ab57918230b7066;hb=dfc64d149b23ad2e06a10ff4f187ea9ce664bbc9;hpb=701e7beed3baca980039f978c6d536dd91cae775 diff --git a/functions/addressbook.php b/functions/addressbook.php index 52f15961..77b15f26 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -4,7 +4,7 @@ * * Functions require SM_PATH and support of forms.php functions * - * @copyright 1999-2014 The SquirrelMail Project Team + * @copyright 1999-2019 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -425,12 +425,19 @@ class AddressBook { var $add_extra_field = false; /** - * Constructor function. + * Constructor (PHP5 style, required in some future version of PHP) */ - function AddressBook() { + function __construct() { $this->localbackendname = _("Personal Address Book"); } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + */ + function AddressBook() { + self::__construct(); + } + /** * Return an array of backends of a given type, * or all backends if no type is specified. @@ -514,7 +521,7 @@ class AddressBook { * @param array $row address book entry * @return string email address with real name prepended */ - function full_address($row) { + static function full_address($row) { global $data_dir, $username, $addrsrch_fullname; // allow multiple addresses in one row (poor person's grouping - bah)