From d84568cfd14ad57146c48a6af9ba0aa25e1790b5 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 10 Dec 2016 10:53:32 +0000 Subject: [PATCH] Add PHP5-style constructor git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14625 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/abook_local_file.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index 5ea4b301..37bedd66 100644 --- a/functions/abook_local_file.php +++ b/functions/abook_local_file.php @@ -92,11 +92,11 @@ class abook_local_file extends addressbook_backend { /* ========================== Private ======================= */ /** - * Constructor + * Constructor (PHP5 style, required in some future version of PHP) * @param array $param backend options * @return bool */ - function abook_local_file($param) { + function __construct($param) { $this->sname = _("Personal Address Book"); $this->umask = Umask(); @@ -139,6 +139,15 @@ class abook_local_file extends addressbook_backend { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * @param array $param backend options + * @return bool + */ + function abook_local_file($param) { + return self::__construct($param); + } + /** * Open the addressbook file and store the file pointer. * Use $file as the file to open, or the class' own -- 2.25.1