mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
1b9380040c
1 changed files with 4 additions and 1 deletions
|
@ -15,12 +15,15 @@ class phpbb_mock_extension_manager extends \phpbb\extension\manager
|
||||||
{
|
{
|
||||||
public function __construct($phpbb_root_path, $extensions = array(), $container = null)
|
public function __construct($phpbb_root_path, $extensions = array(), $container = null)
|
||||||
{
|
{
|
||||||
|
global $phpEx;
|
||||||
|
|
||||||
|
$lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx));
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
$this->php_ext = 'php';
|
$this->php_ext = 'php';
|
||||||
$this->extensions = $extensions;
|
$this->extensions = $extensions;
|
||||||
$this->filesystem = new \phpbb\filesystem\filesystem();
|
$this->filesystem = new \phpbb\filesystem\filesystem();
|
||||||
$this->container = $container;
|
$this->container = $container;
|
||||||
$this->config = new \phpbb\config\config(array());
|
$this->config = new \phpbb\config\config(array());
|
||||||
$this->user = new \phpbb\user('\phpbb\datetime');
|
$this->user = new \phpbb\user($lang,'\phpbb\datetime');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue