Revert to stable version 3.5.4

This commit is contained in:
Hypolite Petovan 2018-02-11 19:00:01 -05:00
parent 38db18b624
commit 5360f08f42
355 changed files with 21449 additions and 4957 deletions

View file

@ -8,7 +8,6 @@
*
*/
use Friendica\Core\PConfig;
function gnot_install() {
@ -45,7 +44,7 @@ function gnot_settings_post($a,$post) {
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);
}
@ -70,7 +69,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" ' : '' );
@ -92,7 +91,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'] = sprintf( t('[Friendica:Notify] Comment to conversation #%d'), $b['parent']);