X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fdb_prefs.php;h=c5b54973f5cfe6a3d3284aabef4394cd7562ae1f;hb=6654098883ee3a5b5ca49b54020a743c3ef4a46c;hp=de256e4c413f22df629554dd3abe739d2e14fd7a;hpb=a95fae0bb9d244d1fccb7531074371bc39f80a0f;p=squirrelmail.git diff --git a/functions/db_prefs.php b/functions/db_prefs.php index de256e4c..c5b54973 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -47,7 +47,7 @@ * NOT to quote identifiers by setting * this to "none" * - * @copyright 1999-2015 The SquirrelMail Project Team + * @copyright 1999-2017 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -208,10 +208,11 @@ class dbPrefs { /** + * Constructor (PHP5 style, required in some future version of PHP) * initialize the default preferences array. * */ - function dbPrefs() { + function __construct() { // Try and read the default preferences file. $default_pref = SM_PATH . 'config/default_pref'; if (@file_exists($default_pref)) { @@ -228,6 +229,15 @@ class dbPrefs { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * initialize the default preferences array. + * + */ + function dbPrefs() { + self::__construct(); + } + /** * initialize DB connection object *