use getsystemconfig method
parent
77cb06e67a
commit
6b4983fc28
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue