use getsystemconfig method

pull/833/head
Akhil 2023-09-26 20:36:49 +05:30
parent 77cb06e67a
commit 6b4983fc28
No known key found for this signature in database
GPG Key ID: A8AB680DBB7F3D45
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class Util
public static function getTimelinePaths(string $uid): array public static function getTimelinePaths(string $uid): array
{ {
$config = \OC::$server->get(IConfig::class); $config = \OC::$server->get(IConfig::class);
$defaultTimelinePath = $config->getSystemValue('memories.default_timeline_path', 'Photos/'); $defaultTimelinePath = self::getSystemConfig('memories.default_timeline_path');
$paths = $config->getUserValue($uid, Application::APPNAME, 'timelinePath', null) ?? $defaultTimelinePath; $paths = $config->getUserValue($uid, Application::APPNAME, 'timelinePath', null) ?? $defaultTimelinePath;
return array_map(static fn ($p) => self::sanitizePath(trim($p)), explode(';', $paths)); return array_map(static fn ($p) => self::sanitizePath(trim($p)), explode(';', $paths));