diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-24 14:14:33 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-24 14:14:33 +0200 |
commit | 2583cab469561cc910001196fbbbbafc5c1920ef (patch) | |
tree | 9549c7c58691f0b3e2508913cc7dacc19336c9f8 | |
parent | da0875a01509ed8d6edf1b2326283de83b5fbacc (diff) | |
download | volse-hubzilla-2583cab469561cc910001196fbbbbafc5c1920ef.tar.gz volse-hubzilla-2583cab469561cc910001196fbbbbafc5c1920ef.tar.bz2 volse-hubzilla-2583cab469561cc910001196fbbbbafc5c1920ef.zip |
add title to element array
-rw-r--r-- | mod/blocks.php | 3 | ||||
-rw-r--r-- | mod/impel.php | 2 | ||||
-rw-r--r-- | mod/layouts.php | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/mod/blocks.php b/mod/blocks.php index ac78473ce..5df6aa1bc 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -106,7 +106,7 @@ function blocks_content(&$a) { $editor = status_editor($a,$x); - $r = q("select iid, sid, mid, body, created, edited from item_id left join item on item_id.iid = item.id + $r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id where item_id.uid = %d and service = 'BUILDBLOCK' order by item.created desc", intval($owner) ); @@ -118,6 +118,7 @@ function blocks_content(&$a) { foreach($r as $rr) { $element_arr = array( 'type' => 'block', + 'title' => $rr['title'], 'body' => $rr['body'], 'created' => $rr['created'], 'edited' => $rr['edited'], diff --git a/mod/impel.php b/mod/impel.php index 1b641b301..f4d40f7a8 100644 --- a/mod/impel.php +++ b/mod/impel.php @@ -118,4 +118,4 @@ function impel_init(&$a) { json_return_and_die(true); -}
\ No newline at end of file +} diff --git a/mod/layouts.php b/mod/layouts.php index f11554364..57300777a 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -132,7 +132,7 @@ function layouts_content(&$a) { $editor = status_editor($a,$x); - $r = q("select iid, sid, mid, body, created, edited from item_id left join item on item_id.iid = item.id + $r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id where item_id.uid = %d and service = 'PDL' order by item.created desc", intval($owner) ); @@ -144,6 +144,7 @@ function layouts_content(&$a) { foreach($r as $rr) { $element_arr = array( 'type' => 'layout', + 'title' => $rr['title'], 'body' => $rr['body'], 'created' => $rr['created'], 'edited' => $rr['edited'], |