aboutsummaryrefslogtreecommitdiffstats
path: root/include/menu.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-05 16:28:51 -0800
committerfriendica <info@friendica.com>2014-02-05 16:28:51 -0800
commit1b406be544a2e434b56eed26bab14ede63fe2104 (patch)
tree21de2774fcc1eab2509a9f2b9e950d911e5f9718 /include/menu.php
parentda8a79ebfa948bc5f2f300404f661e71fdde788d (diff)
downloadvolse-hubzilla-1b406be544a2e434b56eed26bab14ede63fe2104.tar.gz
volse-hubzilla-1b406be544a2e434b56eed26bab14ede63fe2104.tar.bz2
volse-hubzilla-1b406be544a2e434b56eed26bab14ede63fe2104.zip
allow bookmarks to use richtext
Diffstat (limited to 'include/menu.php')
-rw-r--r--include/menu.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php
index 105e4216b..813d7bcdb 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -1,6 +1,7 @@
<?php /** @file */
require_once('include/security.php');
+require_once('include/bbcode.php');
function menu_fetch($name,$uid,$observer_xchan) {
@@ -27,11 +28,13 @@ function menu_render($menu) {
if(! $menu)
return '';
- for($x = 0; $x < count($menu['items']); $x ++)
+ for($x = 0; $x < count($menu['items']); $x ++) {
if($menu['items'][$x]['mitem_flags'] & MENU_ITEM_ZID)
$menu['items'][$x]['mitem_link'] = zid($menu['items'][$x]['mitem_link']);
if($menu['items'][$x]['mitem_flags'] & MENU_ITEM_NEWWIN)
$menu['items'][$x]['newwin'] = '1';
+ $menu['items'][$x]['mitem_desc'] = bbcode($menu['items'][$x]['mitem_desc']);
+ }
return replace_macros(get_markup_template('usermenu.tpl'),array(
'$menu' => $menu['menu'],