Merge branch '3.6-rc'
[friendica-addons.git] / gnot / gnot.php
index c7678a2185e8dbc0e08308e633df7d553980f7f6..87d28063b591ac29589b61f8c73e99a0c8fc881c 100644 (file)
@@ -71,7 +71,7 @@ function gnot_settings(&$a,&$s) {
 
        /* 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" ' : '' );
        
@@ -93,7 +93,7 @@ function gnot_settings(&$a,&$s) {
 
 
 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'] = L10n::t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);