mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR Code syntax formatting and removal of useless comment
This commit is contained in:
parent
0512155cbe
commit
c97022314f
@ -16,7 +16,6 @@ class MultiFormPurgeTask extends DailyTask {
|
|||||||
* Days after which sessions expire and
|
* Days after which sessions expire and
|
||||||
* are automatically deleted.
|
* are automatically deleted.
|
||||||
*
|
*
|
||||||
* @usedby {@link MultiFormPurgeTask}
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public static $session_expiry_days = 7;
|
public static $session_expiry_days = 7;
|
||||||
@ -46,7 +45,8 @@ class MultiFormPurgeTask extends DailyTask {
|
|||||||
protected function getExpiredSessions() {
|
protected function getExpiredSessions() {
|
||||||
return DataObject::get(
|
return DataObject::get(
|
||||||
'MultiFormSession',
|
'MultiFormSession',
|
||||||
"DATEDIFF(NOW(), `MultiFormSession`.`Created`) > " . self::$session_expiry_days);
|
"DATEDIFF(NOW(), `MultiFormSession`.`Created`) > " . self::$session_expiry_days
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user