More progress on pages - extend writepages widget, add pagelist widget

This commit is contained in:
Thomas Willingham
2013-08-14 20:46:48 +01:00
parent a0dfd44f91
commit 608e04c65e
5 changed files with 46 additions and 20 deletions
+1 -5
View File
@@ -58,7 +58,6 @@ function page_content(&$a) {
dbesc($page_id),
intval(ITEM_WEBPAGE)
);
logger('r: ' . print_r($r,true));
if(! $r) {
notice( t('Item not found.') . EOL);
@@ -66,16 +65,13 @@ function page_content(&$a) {
}
// 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']);