Commit d08395ac1308727dd45396083f454c47605c0604
- Diff rendering mode:
- inline
- side by side
htdocs/lib/activity.php
(3 / 2)
|   | |||
| 188 | 188 | ||
| 189 | 189 | function activity_process_queue() { | |
| 190 | 190 | ||
| 191 | db_begin(); | ||
| 192 | 191 | if ($toprocess = get_records_array('activity_queue')) { | |
| 193 | 192 | // Hack to avoid duplicate watchlist notifications on the same view | |
| 194 | 193 | $watchlist = activity_locate_typerecord('watchlist'); | |
| … | … | ||
| 200 | 200 | } | |
| 201 | 201 | $viewsnotified[$data->view] = true; | |
| 202 | 202 | } | |
| 203 | |||
| 204 | db_begin(); | ||
| 203 | 205 | try { | |
| 204 | 206 | handle_activity($activity->type, $data, true); | |
| 205 | 207 | } | |
| … | … | ||
| 210 | 210 | // log them and continue | |
| 211 | 211 | log_debug($e->getMessage()); | |
| 212 | 212 | } | |
| 213 | db_commit(); | ||
| 213 | 214 | } | |
| 214 | 215 | delete_records('activity_queue'); | |
| 215 | 216 | } | |
| 216 | db_commit(); | ||
| 217 | 217 | } | |
| 218 | 218 | ||
| 219 | 219 | function activity_get_viewaccess_users($view, $owner, $type) { |

