Move PConfig::get() to DI::pConfig()->get()

This commit is contained in:
nupplaPhil 2020-01-18 16:50:56 +01:00
parent 2a35176588
commit ea3a9052d8
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
42 changed files with 414 additions and 412 deletions

View file

@ -46,7 +46,7 @@ function ifttt_settings(App $a, &$s)
return;
}
$key = PConfig::get(local_user(), 'ifttt', 'key');
$key = DI::pConfig()->get(local_user(), 'ifttt', 'key');
if (!$key) {
$key = Strings::getRandomHex(20);
@ -119,7 +119,7 @@ function ifttt_post(App $a)
$key = $_REQUEST['key'];
// Check the key
if ($key != PConfig::get($uid, 'ifttt', 'key')) {
if ($key != DI::pConfig()->get($uid, 'ifttt', 'key')) {
Logger::log('Invalid key for user ' . $uid, Logger::DEBUG);
return;
}