Commit a1e14fae authored by Johan Cwiklinski's avatar Johan Cwiklinski

Drop old class references; fixes #3882

parent 6f37c72a
......@@ -361,9 +361,9 @@ class PurgeLogs extends CommonDBTM {
static function getDateModRestriction($month) {
if ($month > 0) {
return ['date_mod' => new QueryExpression("DATE_ADD(NOW(), INTERVAL -$month MONTH)")];
} else if ($month == PluginPurgelogsConfig::DELETE_ALL) {
} else if ($month == Config::DELETE_ALL) {
return [1 => 1];
} else if ($month == PluginPurgelogsConfig::KEEP_ALL) {
} else if ($month == Config::KEEP_ALL) {
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment