From 438ce44af9e66153af2ab1719c2372165143aff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Jim=C3=A9nez=20Friaza?= Date: Sat, 9 Jun 2018 13:41:13 +0200 Subject: Update symbolic link doc/es --- doc/es | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/es b/doc/es index c8ba7666b..a170c77bc 120000 --- a/doc/es +++ b/doc/es @@ -1 +1 @@ -es-es \ No newline at end of file +doc/es-es \ No newline at end of file -- cgit v1.2.3 From d0f7b1d9b79a5a96314d5c6caa011f7050cec2f9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 10 Jun 2018 17:04:34 +0200 Subject: fix issue #1221 --- Zotlabs/Lib/Share.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Lib/Share.php b/Zotlabs/Lib/Share.php index e9e4d23c4..d3ecbf7fa 100644 --- a/Zotlabs/Lib/Share.php +++ b/Zotlabs/Lib/Share.php @@ -107,7 +107,7 @@ class Share { } public function bbcode() { - $bb = NULL_STR; + $bb = EMPTY_STR; if(! $this->item) return $bb; @@ -140,4 +140,4 @@ class Share { } -} \ No newline at end of file +} -- cgit v1.2.3 From 6959c9e42350b7d19402bef24bb4fd366af22ed4 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 10 Jun 2018 15:27:55 -0700 Subject: fixes for immediate expire, channel_active not initialised in DB --- include/channel.php | 1 + include/items.php | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/channel.php b/include/channel.php index 1a62dcd3c..d26056171 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2359,6 +2359,7 @@ function channel_store_lowlevel($arr) { 'channel_dirdate' => ((array_key_exists('channel_dirdate',$arr)) ? $arr['channel_dirdate'] : NULL_DATE), 'channel_lastpost' => ((array_key_exists('channel_lastpost',$arr)) ? $arr['channel_lastpost'] : NULL_DATE), 'channel_deleted' => ((array_key_exists('channel_deleted',$arr)) ? $arr['channel_deleted'] : NULL_DATE), + 'channel_active' => ((array_key_exists('channel_active',$arr)) ? $arr['channel_active'] : NULL_DATE), 'channel_max_anon_mail' => ((array_key_exists('channel_max_anon_mail',$arr)) ? $arr['channel_max_anon_mail'] : '10'), 'channel_max_friend_req' => ((array_key_exists('channel_max_friend_req',$arr)) ? $arr['channel_max_friend_req'] : '10'), 'channel_expire_days' => ((array_key_exists('channel_expire_days',$arr)) ? $arr['channel_expire_days'] : '0'), diff --git a/include/items.php b/include/items.php index e75a9659d..54df5d322 100755 --- a/include/items.php +++ b/include/items.php @@ -3697,10 +3697,7 @@ function delete_item_lowlevel($item, $stage = DROPITEM_NORMAL, $force = false) { ); } else { - $r = q("UPDATE item SET item_deleted = 1, body = '', title = '', - changed = '%s', edited = '%s' WHERE id = %d", - dbesc(datetime_convert()), - dbesc(datetime_convert()), + $r = q("DELETE FROM item WHERE id = %d", intval($item['id']) ); } -- cgit v1.2.3 From 912ccb31a133c09b28890f0bab5be5ce1f7f95d4 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 10 Jun 2018 19:26:35 -0700 Subject: hubzilla core issue #1218 --- include/menu.php | 5 +++++ view/tpl/usermenu.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/menu.php b/include/menu.php index 4add78c39..1a2059451 100644 --- a/include/menu.php +++ b/include/menu.php @@ -81,6 +81,10 @@ function menu_render($menu, $class='', $edit = false, $var = array()) { if ((! $channel_id) && (local_channel())) $channel_id = local_channel(); + $chan = channelx_by_n($channel_id); + if(! $chan) + return ''; + $menu_list = menu_list($channel_id); $menu_names = array(); @@ -110,6 +114,7 @@ function menu_render($menu, $class='', $edit = false, $var = array()) { $ret = replace_macros(get_markup_template('usermenu.tpl'),array( '$menu' => $menu['menu'], '$class' => $class, + '$nick' => $chan['channel_address'], '$edit' => (($edit) ? t("Edit") : ''), '$id' => $menu['menu']['menu_id'], '$items' => $menu['items'], diff --git a/view/tpl/usermenu.tpl b/view/tpl/usermenu.tpl index c51728c34..8bbfedd07 100644 --- a/view/tpl/usermenu.tpl +++ b/view/tpl/usermenu.tpl @@ -2,7 +2,7 @@
{{/if}} {{if $menu.menu_desc}} -

{{$menu.menu_desc}}{{if $edit}} {{/if}}

+

{{$menu.menu_desc}}{{if $edit}} {{/if}}

{{/if}} {{if $items}}