*"My body was my sacrifice... for my magic. This damage is permanent." - Raistlin Majere
*/
+use Friendica\Core\PConfig;
function krynn_install() {
/* Retrieve our personal config setting */
- $active = get_pconfig(local_user(), 'krynn', 'enable');
+ $active = PConfig::get(local_user(), 'krynn', 'enable');
if(! $active)
return;
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']));
}
/* 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" ' : '');