From 8e606ad3316888add2356c2a8837264dddab8521 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Sat, 29 Dec 2018 17:52:07 +0100 Subject: [PATCH] Fixed "headers already sent" error in installer --- .gitignore | 1 + src/installer/index.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8b65ddf..9d210c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea PROTOTYPING +tools src/installer/cache src/private/cache src/private/vendor diff --git a/src/installer/index.php b/src/installer/index.php index 46eab80..54599de 100644 --- a/src/installer/index.php +++ b/src/installer/index.php @@ -22,6 +22,10 @@ error_reporting(E_ALL); set_time_limit(0); $stepNumber = empty($_GET["step"]) || !file_exists(__DIR__ . "/pages/" . (int)$_GET["step"] . ".php") ? 1 : (int) $_GET["step"]; + +ob_start(); +require __DIR__ . "/pages/$stepNumber.php"; +$pageContent = ob_get_clean(); ?> @@ -80,7 +84,7 @@ $stepNumber = empty($_GET["step"]) || !file_exists(__DIR__ . "/pages/" . (int)$_ - +