aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-07 13:37:33 -0800
committerfriendica <info@friendica.com>2014-02-07 13:39:13 -0800
commit63589d4f2e05ec9bb2c8da193f566da512de5364 (patch)
tree2fdb314a8b98b70a715f2c1ccb076abf65151c7f /include
parentc80325b4279b6f19540416064382755ca5e6eccd (diff)
downloadvolse-hubzilla-63589d4f2e05ec9bb2c8da193f566da512de5364.tar.gz
volse-hubzilla-63589d4f2e05ec9bb2c8da193f566da512de5364.tar.bz2
volse-hubzilla-63589d4f2e05ec9bb2c8da193f566da512de5364.zip
from olivier: use double quotes in js strings, updated FR translation
from me: provide future ability to have an optional edit link/icon next to menus (such as bookmarks)
Diffstat (limited to 'include')
-rw-r--r--include/menu.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php
index b879af845..e9049bf8e 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -24,7 +24,7 @@ function menu_fetch($name,$uid,$observer_xchan) {
return null;
}
-function menu_render($menu) {
+function menu_render($menu, $edit = false) {
if(! $menu)
return '';
@@ -38,6 +38,7 @@ function menu_render($menu) {
return replace_macros(get_markup_template('usermenu.tpl'),array(
'$menu' => $menu['menu'],
+ '$edit' => $edit,
'$items' => $menu['items']
));
}