aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-10-16 21:08:19 +0200
committerM. Dent <dentm42@gmail.com>2018-10-16 21:08:19 +0200
commit34d189c02ea394cdd9b1ad164b90c40413764e57 (patch)
tree61425bc7f0b1461e0bed274a998443d46aa3d015
parented08eb07c63223d09011eab90709d8f3da44f549 (diff)
parentae875734e270dbe9840e87f07aa10f11a1af1d89 (diff)
downloadvolse-hubzilla-34d189c02ea394cdd9b1ad164b90c40413764e57.tar.gz
volse-hubzilla-34d189c02ea394cdd9b1ad164b90c40413764e57.tar.bz2
volse-hubzilla-34d189c02ea394cdd9b1ad164b90c40413764e57.zip
Merge branch 'dev' into 'dev'
improve posting to mod pconfig via ajax See merge request hubzilla/core!1340
-rw-r--r--Zotlabs/Module/Pconfig.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/Zotlabs/Module/Pconfig.php b/Zotlabs/Module/Pconfig.php
index b6264bddc..7c82bac7d 100644
--- a/Zotlabs/Module/Pconfig.php
+++ b/Zotlabs/Module/Pconfig.php
@@ -13,14 +13,15 @@ class Pconfig extends \Zotlabs\Web\Controller {
return;
- if($_SESSION['delegate'])
- return;
+ if($_SESSION['delegate'])
+ return;
check_form_security_token_redirectOnErr('/pconfig', 'pconfig');
$cat = trim(escape_tags($_POST['cat']));
$k = trim(escape_tags($_POST['k']));
$v = trim($_POST['v']);
+ $aj = intval($_POST['aj']);
if(in_array(argv(2),$this->disallowed_pconfig())) {
notice( t('This setting requires special processing and editing has been blocked.') . EOL);
@@ -33,9 +34,12 @@ class Pconfig extends \Zotlabs\Web\Controller {
set_pconfig(local_channel(),$cat,$k,$v);
build_sync_packet();
-
- goaway(z_root() . '/pconfig/' . $cat . '/' . $k);
-
+
+ if($aj)
+ killme();
+ else
+ goaway(z_root() . '/pconfig/' . $cat . '/' . $k);
+
}