1
0
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:
Marc Alexander
2015-11-10 15:01:18 +01:00
parent 024ec86181
commit 079b3d074d
4 changed files with 9 additions and 3 deletions

4
phpBB/install/phpbbcli.php Normal file → Executable file
View 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');