phpBB

Code Changes

File: phpbb/cron/task/wrapper.php

  Unmodified   Added   Modified   Removed
Line 40Line 40
	 * @var string
*/
protected $php_ext;

	 * @var string
*/
protected $php_ext;

 

/**
* @var \phpbb\template\template
*/
protected $template;


/**
* Constructor.


/**
* Constructor.

Line 50Line 55
	* @param helper	$routing_helper		Routing helper for route generation
* @param string $phpbb_root_path Relative path to phpBB root
* @param string $php_ext PHP file extension

	* @param helper	$routing_helper		Routing helper for route generation
* @param string $phpbb_root_path Relative path to phpBB root
* @param string $php_ext PHP file extension

 
	* @param \phpbb\template\template	$template

	*/

	*/

	public function __construct(task $task, helper $routing_helper, $phpbb_root_path, $php_ext)

	public function __construct(task $task, helper $routing_helper, $phpbb_root_path, $php_ext, $template)

	{
$this->task = $task;
$this->routing_helper = $routing_helper;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;

	{
$this->task = $task;
$this->routing_helper = $routing_helper;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;

 
		$this->template = $template;

	}

/**

	}

/**

Line 103Line 110
		}

return $this->routing_helper->route('phpbb_cron_run', $params);

		}

return $this->routing_helper->route('phpbb_cron_run', $params);

 
	}

/**
* Returns HTML for an invisible `img` tag that can be displayed on page
* load to trigger a request to the relevant cron task endpoint.
*
* @return string HTML to render to trigger cron task
*/
public function get_html_tag()
{
$this->template->set_filenames([
'cron_html_tag' => 'cron.html',
]);

$this->template->assign_var('CRON_TASK_URL', $this->get_url());

return $this->template->assign_display('cron_html_tag');

	}

/**

	}

/**