Use dot in configs

old-stable24
Varun Patil 2022-10-22 10:45:20 -07:00
parent fc2ddcd24e
commit d296d6d8e9
2 changed files with 2 additions and 2 deletions

View File

@ -604,7 +604,7 @@ class ApiController extends Controller
} }
// Make sure not running in read-only mode // Make sure not running in read-only mode
if ($this->config->getSystemValue('memories_readonly', false)) { if ($this->config->getSystemValue('memories.readonly', false)) {
return new JSONResponse(["message" => "Cannot change settings in readonly mode"], Http::STATUS_FORBIDDEN); return new JSONResponse(["message" => "Cannot change settings in readonly mode"], Http::STATUS_FORBIDDEN);
} }

View File

@ -393,7 +393,7 @@ class Exif
/** Get path to exiftool binary */ /** Get path to exiftool binary */
private static function getExiftool() private static function getExiftool()
{ {
$configKey = 'memories_exiftool'; $configKey = 'memories.exiftool';
$config = \OC::$server->getConfig(); $config = \OC::$server->getConfig();
$configPath = $config->getSystemValue($configKey); $configPath = $config->getSystemValue($configKey);
$noLocal = $config->getSystemValue($configKey.'_no_local', false); $noLocal = $config->getSystemValue($configKey.'_no_local', false);