mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Replace "keep history" magic value by a constant (#1759)
I think the use of a magic value repeated many times in the code is prone to have some errors made by people not knowing its meaning. Using a constant is a bit more safe. Judging by some comments in the code, I am not the only one.
This commit is contained in:
committed by
Alexandre Alapetite
parent
e3ffc048d7
commit
7642d334f8
@@ -104,7 +104,7 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
|
||||
'pathEntries' => Minz_Request::param('path_entries', ''),
|
||||
'priority' => intval(Minz_Request::param('priority', FreshRSS_Feed::PRIORITY_MAIN_STREAM)),
|
||||
'httpAuth' => $httpAuth,
|
||||
'keep_history' => intval(Minz_Request::param('keep_history', -2)),
|
||||
'keep_history' => intval(Minz_Request::param('keep_history', FreshRSS_Feed::KEEP_HISTORY_DEFAULT)),
|
||||
'ttl' => $ttl * ($mute ? -1 : 1),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user