1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/mail/roundcube-carddav/files/patch-carddav.php

13 lines
498 B
PHP
Raw Permalink Normal View History

--- carddav.php.orig 2021-11-20 10:58:46 UTC
+++ carddav.php
@@ -1259,6 +1259,9 @@ class carddav extends rcube_plugin
$logger = Config::inst()->logger();
$httpLogger = Config::inst()->httpLogger();
$prefs = [];
+ if (defined('RCUBE_CONFIG_DIR'))
+ $configfile = RCUBE_CONFIG_DIR . "/carddav.inc.php";
+ else
$configfile = dirname(__FILE__) . "/config.inc.php";
if (file_exists($configfile)) {
include($configfile);