webpages and design elements weren't being included in the item export query.

This commit is contained in:
redmatrix 2015-11-22 14:06:52 -08:00
parent 427652e9bd
commit 292b02b58c
2 changed files with 3 additions and 2 deletions

View File

@ -710,7 +710,8 @@ function identity_export_year($channel_id,$year,$month = 0) {
else else
$maxdate = datetime_convert('UTC','UTC',$year+1 . '-01-01 00:00:00'); $maxdate = datetime_convert('UTC','UTC',$year+1 . '-01-01 00:00:00');
$r = q("select * from item where item_wall = 1 and item_deleted = 0 and uid = %d and created >= '%s' and created < '%s' and resource_type = '' order by created", $r = q("select * from item where ( item_wall = 1 or item_type != %d ) and item_deleted = 0 and uid = %d and created >= '%s' and created < '%s' and resource_type = '' order by created",
intval(ITEM_TYPE_POST),
intval($channel_id), intval($channel_id),
dbesc($mindate), dbesc($mindate),
dbesc($maxdate) dbesc($maxdate)

View File

@ -1 +1 @@
2015-11-20.1222 2015-11-22.1224