aboutsummaryrefslogtreecommitdiffstats
path: root/mod/menu.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-28 19:06:31 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-28 19:06:31 -0700
commit8fe3daab21f9aba00f7def3553247b0cbcf5f94a (patch)
tree3e8b22ef3b197e4dbdba3e86f7427452d1cd6b73 /mod/menu.php
parentb381ec57346a6d7724b2317c120ce2e6e70edc37 (diff)
parentdf5223fe9813a2f6bee053c1c3c6acbdbaf6d42f (diff)
downloadvolse-hubzilla-8fe3daab21f9aba00f7def3553247b0cbcf5f94a.tar.gz
volse-hubzilla-8fe3daab21f9aba00f7def3553247b0cbcf5f94a.tar.bz2
volse-hubzilla-8fe3daab21f9aba00f7def3553247b0cbcf5f94a.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: install/schema_mysql.sql mod/impel.php view/pt-br/messages.po view/pt-br/strings.php
Diffstat (limited to 'mod/menu.php')
-rw-r--r--mod/menu.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/menu.php b/mod/menu.php
index 0dbbfde9c..63aeaa5e3 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -78,6 +78,9 @@ function menu_content(&$a) {
$x = menu_list($uid);
if($x) {
for($y = 0; $y < count($x); $y ++) {
+ $m = menu_fetch($x[$y]['menu_name'],$uid,get_observer_hash());
+ if($m)
+ $x[$y]['element'] = '[element]' . base64url_encode(json_encode(menu_element($m))) . '[/element]';
$x[$y]['bookmark'] = (($x[$y]['menu_flags'] & MENU_BOOKMARK) ? true : false);
}
}