aboutsummaryrefslogtreecommitdiffstats
path: root/mod/page.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/page.php')
-rw-r--r--mod/page.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/page.php b/mod/page.php
index 51b292f37..4b2b95b6a 100644
--- a/mod/page.php
+++ b/mod/page.php
@@ -2,6 +2,8 @@
require_once('include/items.php');
require_once('include/conversation.php');
+require_once('include/page_widgets.php');
+
function page_init(&$a) {
// We need this to make sure the channel theme is always loaded.
$which = argv(1);
@@ -32,7 +34,6 @@ function page_content(&$a) {
return;
}
-
if(argc() < 3) {
notice( t('Invalid item.') . EOL);
return;
@@ -63,6 +64,14 @@ function page_content(&$a) {
return;
}
+// Use of widgets should be determined by Comanchie, but we don't have it yet, so...
+ if ($perms['write_pages']) {
+ $chan = $a->channel['channel_id'];
+ $who = $channel_address;
+ $which = $r[0]['id'];
+ $o .= writepages_widget($who,$which);
+ }
+
xchan_query($r);
$r = fetch_post_tags($r,true);
$a->profile = array('profile_uid' => $u[0]['channel_id']);