*
*/
-use Friendica\Core\PConfig;
function gnot_install() {
if(! local_user() || (! x($_POST,'gnot-submit')))
return;
- PConfig::set(local_user(),'gnot','enable',intval($_POST['gnot']));
+ set_pconfig(local_user(),'gnot','enable',intval($_POST['gnot']));
info( t('Gnot settings updated.') . EOL);
}
/* Get the current state of our config variable */
- $gnot = intval(PConfig::get(local_user(),'gnot','enable'));
+ $gnot = intval(get_pconfig(local_user(),'gnot','enable'));
$gnot_checked = (($gnot) ? ' checked="checked" ' : '' );
function gnot_enotify_mail(&$a,&$b) {
- if((! $b['uid']) || (! intval(PConfig::get($b['uid'], 'gnot','enable'))))
+ if((! $b['uid']) || (! intval(get_pconfig($b['uid'], 'gnot','enable'))))
return;
if($b['type'] == NOTIFY_COMMENT)
$b['subject'] = sprintf( t('[Friendica:Notify] Comment to conversation #%d'), $b['parent']);