*
*/
+use Friendica\Core\PConfig;
function numfriends_install() {
if(! local_user() || (! x($_POST,'numfriends-submit')))
return;
- set_pconfig(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
+ PConfig::set(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
info( t('Numfriends settings updated.') . EOL);
}
/* Get the current state of our config variable */
- $numfriends = get_pconfig(local_user(),'system','display_friend_count');
+ $numfriends = PConfig::get(local_user(),'system','display_friend_count');
if($numfriends === false)
$numfriends = 24;