diff options
author | friendica <info@friendica.com> | 2011-11-21 19:01:05 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-11-21 19:01:05 -0800 |
commit | c568493f572bdc88cae288d5c43e9fb55361ce07 (patch) | |
tree | 9c1555486780021e7ac5a4c9c4b0812841369551 /include | |
parent | ea04263f52dc30ca21e2bfb61ff41cf4428f69f2 (diff) | |
download | volse-hubzilla-c568493f572bdc88cae288d5c43e9fb55361ce07.tar.gz volse-hubzilla-c568493f572bdc88cae288d5c43e9fb55361ce07.tar.bz2 volse-hubzilla-c568493f572bdc88cae288d5c43e9fb55361ce07.zip |
add expire_starred option, fix "delete selected" on some themes, new project name in email templates
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index fd36dcadb..5ccf76b25 100644 --- a/include/items.php +++ b/include/items.php @@ -2820,11 +2820,14 @@ function item_expire($uid,$days) { $expire_notes = get_pconfig($uid, 'expire','notes'); $expire_notes = (($expire_notes===false)?1:intval($expire_notes)); // default if not set: 1 + + $expire_starred = get_pconfig($uid, 'expire','starred'); + $expire_starred = (($expire_starred===false)?1:intval($expire_starred)); // default if not set: 1 $expire_photos = get_pconfig($uid, 'expire','photos'); $expire_photos = (($expire_photos===false)?0:intval($expire_photos)); // default if not set: 0 - logger('expire: # items=' . count($r). "; expire items: $expire_items, expire notes: $expire_notes, expire photos: $expire_photos"); + logger('expire: # items=' . count($r). "; expire items: $expire_items, expire notes: $expire_notes, expire starred: $expire_starred, expire photos: $expire_photos"); foreach($r as $item) { @@ -2832,6 +2835,8 @@ function item_expire($uid,$days) { if($expire_photos==0 && strlen($item['resource-id'])) continue; + if($expire_starred==0 && intval($item['starred'])) + continue; if($expire_notes==0 && $item['type']=='note') continue; if($expire_items==0 && $item['type']!='note') |