mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
2a35176588
commit
ea3a9052d8
42 changed files with 414 additions and 412 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue