diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
commit | 5795e2a58bb4a0702a3d318ec6ac05681d6e5864 (patch) | |
tree | b416235fa275f7cb036c31737be5fb224a75a87c /mod/blocks.php | |
parent | 25bd332aab20662e55824031dfd19dff23e248f8 (diff) | |
download | volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.gz volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.bz2 volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.zip |
more migration of page types
Diffstat (limited to 'mod/blocks.php')
-rw-r--r-- | mod/blocks.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/mod/blocks.php b/mod/blocks.php index 11e7d4a30..95979a304 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -84,7 +84,7 @@ function blocks_content(&$a) { } $x = array( - 'webpage' => ITEM_BUILDBLOCK, + 'webpage' => ITEM_TYPE_BUILDBLOCK, 'is_owner' => true, 'nickname' => $a->profile['channel_address'], 'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), @@ -108,9 +108,9 @@ function blocks_content(&$a) { $editor = status_editor($a,$x); $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' and item_restrict = %d order by item.created desc", + where item_id.uid = %d and service = 'BUILDBLOCK' and item_type = %d order by item.created desc", intval($owner), - intval(ITEM_BUILDBLOCK) + intval(ITEM_TYPE_BUILDBLOCK) ); $pages = null; @@ -143,21 +143,21 @@ function blocks_content(&$a) { $url = z_root() . '/editblock/' . $which; $o .= replace_macros(get_markup_template('blocklist.tpl'), array( - '$baseurl' => $url, - '$title' => t('Blocks'), - '$name' => t('Block Name'), + '$baseurl' => $url, + '$title' => t('Blocks'), + '$name' => t('Block Name'), '$blocktitle' => t('Block Title'), - '$created' => t('Created'), - '$edited' => t('Edited'), - '$create' => t('Create'), - '$edit' => t('Edit'), - '$share' => t('Share'), - '$delete' => t('Delete'), - '$editor' => $editor, - '$pages' => $pages, - '$channel' => $which, - '$view' => t('View'), - '$preview' => '1', + '$created' => t('Created'), + '$edited' => t('Edited'), + '$create' => t('Create'), + '$edit' => t('Edit'), + '$share' => t('Share'), + '$delete' => t('Delete'), + '$editor' => $editor, + '$pages' => $pages, + '$channel' => $which, + '$view' => t('View'), + '$preview' => '1', )); return $o; |