aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-31 20:14:25 -0700
committerredmatrix <git@macgirvin.com>2016-07-31 20:14:25 -0700
commit9b9621e10d669e7d1bc18a781c40bfc5687330c3 (patch)
treef84527d4c04d002b2ed4060de15921cc27de3cc2 /include/channel.php
parent86eb923f296ff911e3f516e9052b3edc55a02c8a (diff)
downloadvolse-hubzilla-9b9621e10d669e7d1bc18a781c40bfc5687330c3.tar.gz
volse-hubzilla-9b9621e10d669e7d1bc18a781c40bfc5687330c3.tar.bz2
volse-hubzilla-9b9621e10d669e7d1bc18a781c40bfc5687330c3.zip
add a few more path macros to portable menu elements (channelurl, pageurl, storeurl and baseurl)
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/channel.php b/include/channel.php
index 88dd818e6..c07cd14e2 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -640,19 +640,10 @@ function identity_basic_export($channel_id, $items = false) {
for($y = 0; $y < count($x); $y ++) {
$m = menu_fetch($x[$y]['menu_name'],$channel_id,$ret['channel']['channel_hash']);
if($m)
- $ret['menu'][] = menu_element($m);
+ $ret['menu'][] = menu_element($ret['channel'],$m);
}
}
- $x = menu_list($channel_id);
- if($x) {
- $ret['menu'] = array();
- for($y = 0; $y < count($x); $y ++) {
- $m = menu_fetch($x[$y]['menu_name'],$channel_id,$ret['channel']['channel_hash']);
- if($m)
- $ret['menu'][] = menu_element($m);
- }
- }
$addon = array('channel_id' => $channel_id,'data' => $ret);
call_hooks('identity_basic_export',$addon);