Issue 3873

Replace deprecated functions with new syntax
This commit is contained in:
Adam Magness 2017-11-06 18:55:24 -05:00
parent 72474dc2f6
commit 48dcbc6f3f
61 changed files with 1036 additions and 920 deletions

View file

@ -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" ' : '');