Renamed function
This commit is contained in:
parent
8bc799ff38
commit
b30d2c9c6b
|
@ -1431,7 +1431,7 @@ class Item
|
||||||
* @param array $item
|
* @param array $item
|
||||||
* @return boolean item is too old
|
* @return boolean item is too old
|
||||||
*/
|
*/
|
||||||
public static function tooOld(array $item)
|
public static function isTooOld(array $item)
|
||||||
{
|
{
|
||||||
// check for create date and expire time
|
// check for create date and expire time
|
||||||
$expire_interval = DI::config()->get('system', 'dbclean-expire-days', 0);
|
$expire_interval = DI::config()->get('system', 'dbclean-expire-days', 0);
|
||||||
|
|
|
@ -505,7 +505,7 @@ class Feed
|
||||||
} elseif (!Item::isValid($item)) {
|
} elseif (!Item::isValid($item)) {
|
||||||
Logger::info('Feed item is invalid', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
Logger::info('Feed item is invalid', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
||||||
continue;
|
continue;
|
||||||
} elseif (Item::tooOld($item)) {
|
} elseif (Item::isTooOld($item)) {
|
||||||
Logger::info('Feed is too old', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
Logger::info('Feed is too old', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user