git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14632
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/**
+ * 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)) {
}
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * initialize the default preferences array.
+ *
+ */
+ function dbPrefs() {
+ self::__construct();
+ }
+
/**
* initialize DB connection object
*