Jake Bunce
Well-known member
XenForo_Model_EditHistory
Add red code:
Add red code:
Rich (BB code):
public function pruneEditHistory($cutOff = null)
{
if ($cutOff === null)
{
if (XenForo_Application::get('options')->editHistory['enabled'])
{
$logLength = XenForo_Application::get('options')->editHistory['length'];
if (!$logLength)
{
return 0;
}
}
else
{
// $logLength = 0;
return 0;
}
$cutOff = XenForo_Application::$time - 86400 * $logLength;
}
$db = $this->_getDb();
return $db->delete('xf_edit_history', 'edit_date < ' . $db->quote($cutOff));
}