From 0f04a927c4473e46a971c6f6898483b4be58db81 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 10 Jan 2020 17:07:09 +0000 Subject: [PATCH] Tiny formatting tweak --- modules/feature-firstrun.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature-firstrun.php b/modules/feature-firstrun.php index 7c64d7c..b730036 100644 --- a/modules/feature-firstrun.php +++ b/modules/feature-firstrun.php @@ -49,7 +49,7 @@ register_module([ if(!$settings->disable_peppermint_access_check && php_sapi_name() !== "cli-server") { // The CLI server is single threaded, so it can't support loopback requests $request_url = full_url(); - $request_url = preg_replace("/\/(index.php)?\?.*$/", "/".$settingsFilename, $request_url); + $request_url = preg_replace("/\/(index.php)?\?.*$/", "/$settingsFilename", $request_url); @file_get_contents($request_url); // $http_response_header is a global reserved variable. More information: https://devdocs.io/php/reserved.variables.httpresponseheader $response_code = intval(explode(" ", $http_response_header[0])[1]);