From f65207b9353dac35c23abd7772b41f8b594b7aea Mon Sep 17 00:00:00 2001
From: Marc Alexander <admin@m-a-styles.de>
Date: Sun, 28 Feb 2016 12:28:21 +0100
Subject: [PATCH] [ticket/14503] Enable superglobals in cli

This is for example needed for outputting help on commands.

PHPBB3-14503
---
 phpBB/install/phpbbcli.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/phpBB/install/phpbbcli.php b/phpBB/install/phpbbcli.php
index 70a8a9c7ea..6b0ac39f84 100755
--- a/phpBB/install/phpbbcli.php
+++ b/phpBB/install/phpbbcli.php
@@ -36,6 +36,9 @@ require($startup_path);
 
 $input = new ArgvInput();
 
+// Enable superglobals for cli support
+$phpbb_installer_container->get('request')->enable_super_globals();
+
 /** @var \phpbb\filesystem\filesystem $phpbb_filesystem */
 $phpbb_filesystem = $phpbb_installer_container->get('filesystem');