This commit is contained in:
the-djmaze 2022-11-02 09:36:50 +01:00
parent 486878127d
commit 7bca4fb6af
8 changed files with 12 additions and 12 deletions

View file

@ -27,7 +27,7 @@
/**
* Custom 'data' folder path
*/
if (!empty($_ENV['SNAPPYMAIL_NEXTCLOUD'])) {
if (class_exists('OC')) {
define('APP_DATA_FOLDER_PATH', \rtrim(\trim(\OC::$server->getSystemConfig()->getValue('datadirectory', '')), '\\/').'/appdata_snappymail/');
} else {
http_response_code(400);