- Move default_pref to the config/ dir, but keep checking legacy locations
first for bc. Do not fail with an error when default_pref not found, just
create an empty one.
+ - Add trailing slash for data directory used by global file based address
+ book (#1105760).
Version 1.5.0
--------------------
&& trim($abook_global_file)!=''){
// Detect place of address book
if (! preg_match("/[\/\\\]/",$abook_global_file)) {
- // no path chars
- $abook_global_filename=$data_dir . $abook_global_file;
+ /* no path chars, address book stored in data directory
+ * make sure that there is a slash between data directory
+ * and address book file name
+ */
+ $abook_global_filename=$data_dir
+ . ((substr($data_dir, -1) != '/') ? '/' : '')
+ . $abook_global_file;
} elseif (preg_match("/^\/|\w:/",$abook_global_file)) {
// full path is set in options (starts with slash or x:)
$abook_global_filename=$abook_global_file;
* hook allows to include different address book backends.
* plugins should extract $abook and $r from arguments
* and use same add_backend commands as above functions.
+ * @since 1.5.1
*/
$hookReturn = do_hook('abook_init', $abook, $r);
$abook = $hookReturn[1];
* class must follow address book class coding standards.
*
* see addressbook_backend class and functions/abook_*.php files.
+ * @since 1.5.1
*/
do_hook('abook_add_class');