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
|
@ -94,7 +94,7 @@ function randplace_post_hook($a, &$item) {
|
|||
|
||||
/* Retrieve our personal config setting */
|
||||
|
||||
$active = PConfig::get(local_user(), 'randplace', 'enable');
|
||||
$active = DI::pConfig()->get(local_user(), 'randplace', 'enable');
|
||||
|
||||
if(! $active)
|
||||
return;
|
||||
|
@ -163,7 +163,7 @@ function randplace_settings(&$a,&$s) {
|
|||
|
||||
/* Get the current state of our config variable */
|
||||
|
||||
$enabled = PConfig::get(local_user(),'randplace','enable');
|
||||
$enabled = DI::pConfig()->get(local_user(),'randplace','enable');
|
||||
|
||||
$checked = (($enabled) ? ' checked="checked" ' : '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue