aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/controller/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/install/controller/install.php')
-rw-r--r--phpBB/phpbb/install/controller/install.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/phpbb/install/controller/install.php b/phpBB/phpbb/install/controller/install.php
index 5cd42fcb84..b3103c8284 100644
--- a/phpBB/phpbb/install/controller/install.php
+++ b/phpBB/phpbb/install/controller/install.php
@@ -109,6 +109,11 @@ class install
*/
public function handle()
{
+ if ($this->install_helper->is_phpbb_installed())
+ {
+ throw new http_exception(404, 'PAGE_NOT_FOUND');
+ }
+
$this->template->assign_vars(array(
'U_ACTION' => $this->controller_helper->route('phpbb_installer_install'),
));
@@ -131,11 +136,6 @@ class install
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
$iohandler = $this->iohandler_factory->get();
- if ($this->install_helper->is_phpbb_installed())
- {
- throw new http_exception(404, 'PAGE_NOT_FOUND');
- }
-
// Set active navigation stage
if (isset($nav_data['active']) && is_array($nav_data['active']))
{