aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webpages.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-08-01 18:40:50 +0100
committerThomas Willingham <founder@kakste.com>2013-08-01 18:40:50 +0100
commitf3791d48b0249bd6e782c1f7968a42888cec28b5 (patch)
tree3e6ce93decd45e582cb61131c9d4c9fa00767448 /mod/webpages.php
parent2a848c0d3704ac7a4dbce71947c5cb1b362dd749 (diff)
downloadvolse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.tar.gz
volse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.tar.bz2
volse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.zip
"Can edit my webpages" permissions
Diffstat (limited to 'mod/webpages.php')
-rw-r--r--mod/webpages.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/webpages.php b/mod/webpages.php
index cf6a99d1e..f2026ea0b 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -60,10 +60,12 @@ $r = q("select * from item_id where uid = %d and service = 'WEBPAGE'",
}
-
+//Build the base URL for edit links
+ $url = z_root() . "/editwebpage/" . $a->profile['channel_address'];
// This isn't pretty, but it works. Until I figure out what to do with the UI, it's Good Enough(TM).
return $o . replace_macros(get_markup_template("webpagelist.tpl"), array(
- '$editlink' => t('Edit'),
+ '$baseurl' => $url,
+ '$edit' => t('Edit'),
'$pages' => $pages,
'$channel' => $a->profile['channel_address'],
'$view' => t('View'),