mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14281] Fix installer CLI after recent changes
PHPBB3-14281
This commit is contained in:
4
phpBB/install/phpbbcli.php
Normal file → Executable file
4
phpBB/install/phpbbcli.php
Normal file → Executable file
@@ -12,6 +12,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
|
||||
if (php_sapi_name() !== 'cli')
|
||||
{
|
||||
echo 'This program must be run from the command line.' . PHP_EOL;
|
||||
@@ -31,6 +33,8 @@ $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startu
|
||||
$startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx;
|
||||
require($startup_path);
|
||||
|
||||
$input = new ArgvInput();
|
||||
|
||||
/** @var \phpbb\filesystem\filesystem $phpbb_filesystem */
|
||||
$phpbb_filesystem = $phpbb_installer_container->get('filesystem');
|
||||
|
||||
|
Reference in New Issue
Block a user