mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Issue 3873
Replace deprecated functions with new syntax
This commit is contained in:
parent
72474dc2f6
commit
48dcbc6f3f
61 changed files with 1036 additions and 920 deletions
|
@ -8,6 +8,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function gnot_install() {
|
||||
|
||||
|
@ -44,7 +45,7 @@ function gnot_settings_post($a,$post) {
|
|||
if(! local_user() || (! x($_POST,'gnot-submit')))
|
||||
return;
|
||||
|
||||
set_pconfig(local_user(),'gnot','enable',intval($_POST['gnot']));
|
||||
PConfig::set(local_user(),'gnot','enable',intval($_POST['gnot']));
|
||||
info( t('Gnot settings updated.') . EOL);
|
||||
}
|
||||
|
||||
|
@ -69,7 +70,7 @@ function gnot_settings(&$a,&$s) {
|
|||
|
||||
/* Get the current state of our config variable */
|
||||
|
||||
$gnot = intval(get_pconfig(local_user(),'gnot','enable'));
|
||||
$gnot = intval(PConfig::get(local_user(),'gnot','enable'));
|
||||
|
||||
$gnot_checked = (($gnot) ? ' checked="checked" ' : '' );
|
||||
|
||||
|
@ -91,7 +92,7 @@ function gnot_settings(&$a,&$s) {
|
|||
|
||||
|
||||
function gnot_enotify_mail(&$a,&$b) {
|
||||
if((! $b['uid']) || (! intval(get_pconfig($b['uid'], 'gnot','enable'))))
|
||||
if((! $b['uid']) || (! intval(PConfig::get($b['uid'], 'gnot','enable'))))
|
||||
return;
|
||||
if($b['type'] == NOTIFY_COMMENT)
|
||||
$b['subject'] = sprintf( t('[Friendica:Notify] Comment to conversation #%d'), $b['parent']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue