* Author: Tony Baldwin <https://free-haven.org/profile/tony>
*/
+use Friendica\Core\PConfig;
function planets_install() {
/* Retrieve our personal config setting */
- $active = get_pconfig(local_user(), 'planets', 'enable');
+ $active = PConfig::get(local_user(), 'planets', 'enable');
if(! $active)
return;
if(! local_user())
return;
if($_POST['planets-submit'])
- set_pconfig(local_user(),'planets','enable',intval($_POST['planets']));
+ PConfig::set(local_user(),'planets','enable',intval($_POST['planets']));
}
/* Get the current state of our config variable */
- $enabled = get_pconfig(local_user(),'planets','enable');
+ $enabled = PConfig::get(local_user(),'planets','enable');
$checked = (($enabled) ? ' checked="checked" ' : '');