aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-03 21:16:57 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-03 21:16:57 +0200
commitc50bfa07ca3a456d69d73988f42e58e3282879e9 (patch)
tree62f67ca42fa8cd19df88afa337837dc52db8986c /include/text.php
parentd858bd9265a4a0fa3589cdb2126031998310c7c3 (diff)
downloadvolse-hubzilla-c50bfa07ca3a456d69d73988f42e58e3282879e9.tar.gz
volse-hubzilla-c50bfa07ca3a456d69d73988f42e58e3282879e9.tar.bz2
volse-hubzilla-c50bfa07ca3a456d69d73988f42e58e3282879e9.zip
multiple acl work
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 1eec2ba0a..6d7d0ed8d 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2796,6 +2796,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