mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +00:00
Issue 3873
Replace deprecated functions with new syntax
This commit is contained in:
parent
72474dc2f6
commit
48dcbc6f3f
61 changed files with 1036 additions and 920 deletions
|
@ -10,6 +10,7 @@
|
|||
*"My body was my sacrifice... for my magic. This damage is permanent." - Raistlin Majere
|
||||
*/
|
||||
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function krynn_install() {
|
||||
|
||||
|
@ -81,7 +82,7 @@ function krynn_post_hook($a, &$item) {
|
|||
|
||||
/* Retrieve our personal config setting */
|
||||
|
||||
$active = get_pconfig(local_user(), 'krynn', 'enable');
|
||||
$active = PConfig::get(local_user(), 'krynn', 'enable');
|
||||
|
||||
if(! $active)
|
||||
return;
|
||||
|
@ -119,7 +120,7 @@ function krynn_settings_post($a,$post) {
|
|||
if(! local_user())
|
||||
return;
|
||||
if($_POST['krynn-submit'])
|
||||
set_pconfig(local_user(),'krynn','enable',intval($_POST['krynn']));
|
||||
PConfig::set(local_user(),'krynn','enable',intval($_POST['krynn']));
|
||||
}
|
||||
|
||||
|
||||
|
@ -143,7 +144,7 @@ function krynn_settings(&$a,&$s) {
|
|||
|
||||
/* Get the current state of our config variable */
|
||||
|
||||
$enabled = get_pconfig(local_user(),'krynn','enable');
|
||||
$enabled = PConfig::get(local_user(),'krynn','enable');
|
||||
|
||||
$checked = (($enabled) ? ' checked="checked" ' : '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue