aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
committerredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
commit9068ae68ad59249df92458626808673c96b174f1 (patch)
treef45d6c8adc857f1df3bf368d0118fc83607eb91c /include/text.php
parenteeabf514eab20523b847c38cf5befb7f040b7d72 (diff)
parent1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53 (diff)
downloadvolse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.gz
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.bz2
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index d508f8ab3..d283bb41f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2824,6 +2824,12 @@ function expand_acl($s) {
return $ret;
}
+function acl2json($s) {
+ $s = expand_acl($s);
+ $s = json_encode($s);
+ return $s;
+}
+
// When editing a webpage - a dropdown is needed to select a page layout
// On submit, the pdl_select value (which is the mid of an item with item_type = ITEM_TYPE_PDL) is stored in