Use dot in configs
parent
fc2ddcd24e
commit
d296d6d8e9
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue