From f3c319958fba5b9dc51a4a02a05c7f631228cefc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= <rdoursenaud@gpcsolutions.fr>
Date: Mon, 6 Jul 2015 16:37:50 +0200
Subject: [PATCH] Fix: no PHP closing tag in generated files

Best practice
---
 htdocs/install/step1.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/htdocs/install/step1.php b/htdocs/install/step1.php
index 8f4fdb61145..d1eca1211ba 100644
--- a/htdocs/install/step1.php
+++ b/htdocs/install/step1.php
@@ -746,7 +746,6 @@ function write_main_file($mainfile,$main_dir)
         fputs($fp, '<?php'."\n");
         fputs($fp, "// Wrapper to include main into htdocs\n");
         fputs($fp, "include_once '".$main_dir."/main.inc.php';\n");
-        fputs($fp, '?>');
         fclose($fp);
     }
 }
@@ -768,7 +767,6 @@ function write_master_file($masterfile,$main_dir)
         fputs($fp, '<?php'."\n");
         fputs($fp, "// Wrapper to include master into htdocs\n");
         fputs($fp, "include_once '".$main_dir."/master.inc.php';\n");
-        fputs($fp, '?>');
         fclose($fp);
     }
 }
@@ -930,7 +928,6 @@ function write_conf_file($conffile)
         fputs($fp, '$dolibarr_font_DOL_DEFAULT_TTF_BOLD=\''.$force_dolibarr_font_DOL_DEFAULT_TTF_BOLD.'\';');
         fputs($fp,"\n");
 
-		fputs($fp, '?>');
 		fclose($fp);
 
 		if (file_exists("$conffile"))
-- 
GitLab