phpBB

Code Changes

File: includes/acp/acp_extensions.php

  Unmodified   Added   Modified   Removed
Line 35Line 35
	private $request;
private $phpbb_dispatcher;
private $ext_manager;

	private $request;
private $phpbb_dispatcher;
private $ext_manager;

 
	private $phpbb_container;
private $php_ini;


function main()
{
// Start the page


function main()
{
// Start the page

		global $config, $user, $template, $request, $phpbb_extension_manager, $phpbb_root_path, $phpbb_log, $phpbb_dispatcher;

		global $config, $user, $template, $request, $phpbb_extension_manager, $phpbb_root_path, $phpbb_log, $phpbb_dispatcher, $phpbb_container;


$this->config = $config;
$this->template = $template;


$this->config = $config;
$this->template = $template;

Line 48Line 50
		$this->log = $phpbb_log;
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->ext_manager = $phpbb_extension_manager;

		$this->log = $phpbb_log;
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->ext_manager = $phpbb_extension_manager;

 
		$this->phpbb_container = $phpbb_container;
$this->php_ini = $this->phpbb_container->get('php_ini');


$this->user->add_lang(array('install', 'acp/extensions', 'migrator'));



$this->user->add_lang(array('install', 'acp/extensions', 'migrator'));


Line 57Line 61
		$ext_name = $this->request->variable('ext_name', '');

// What is a safe limit of execution time? Half the max execution time should be safe.

		$ext_name = $this->request->variable('ext_name', '');

// What is a safe limit of execution time? Half the max execution time should be safe.

		$safe_time_limit = (ini_get('max_execution_time') / 2);

		$safe_time_limit = ($this->php_ini->getNumeric('max_execution_time') / 2);

		$start_time = time();

// Cancel action

		$start_time = time();

// Cancel action