Refactor entryController

- Coding style
- Refactoring
- Comments (set of TODO)

See https://github.com/marienfressinaud/FreshRSS/issues/655
This commit is contained in:
Marien Fressinaud
2014-10-06 11:59:27 +02:00
parent 031c1d802d
commit d65a9f9bd6
2 changed files with 117 additions and 80 deletions

View File

@@ -332,7 +332,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
}
if ($feed_history >= 0 && rand(0, 30) === 1) {
// TODO: move this function in web cron when available
// TODO: move this function in web cron when available (see entry::purge)
// Remove old entries once in 30.
if (!$feedDAO->hasTransaction()) {
$feedDAO->beginTransaction();