phpBB

Code Changes

File: phpbb/cron/task/core/prune_forum.php

  Unmodified   Added   Modified   Removed
Line 74Line 74
		{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}

		{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}

 

$log_prune = true;


if ($this->forum_data['prune_days'])
{


if ($this->forum_data['prune_days'])
{

			auto_prune($this->forum_data['forum_id'], 'posted', $this->forum_data['forum_flags'], $this->forum_data['prune_days'], $this->forum_data['prune_freq']);


			auto_prune($this->forum_data['forum_id'], 'posted', $this->forum_data['forum_flags'], $this->forum_data['prune_days'], $this->forum_data['prune_freq'], $log_prune);
$log_prune = false;

		}

if ($this->forum_data['prune_viewed'])
{

		}

if ($this->forum_data['prune_viewed'])
{

			auto_prune($this->forum_data['forum_id'], 'viewed', $this->forum_data['forum_flags'], $this->forum_data['prune_viewed'], $this->forum_data['prune_freq']);

			auto_prune($this->forum_data['forum_id'], 'viewed', $this->forum_data['forum_flags'], $this->forum_data['prune_viewed'], $this->forum_data['prune_freq'], $log_prune);

		}
}


		}
}