diff --git a/common/framework/config.php b/common/framework/config.php index 757f4c7ab..0d1ab7ef3 100644 --- a/common/framework/config.php +++ b/common/framework/config.php @@ -30,7 +30,9 @@ class Config { if (file_exists(\RX_BASEDIR . self::$config_filename)) { + ob_start(); self::$_config = (include \RX_BASEDIR . self::$config_filename); + ob_end_clean(); } else { diff --git a/common/framework/parsers/configparser.php b/common/framework/parsers/configparser.php index cfa60dbac..2ae644e7e 100644 --- a/common/framework/parsers/configparser.php +++ b/common/framework/parsers/configparser.php @@ -22,7 +22,9 @@ class ConfigParser // Load DB info file. if (file_exists(\RX_BASEDIR . Config::$old_db_config_filename)) { + ob_start(); include \RX_BASEDIR . Config::$old_db_config_filename; + ob_end_clean(); } else { @@ -32,7 +34,9 @@ class ConfigParser // Load FTP info file. if (file_exists(\RX_BASEDIR . Config::$old_ftp_config_filename)) { + ob_start(); include \RX_BASEDIR . Config::$old_ftp_config_filename; + ob_end_clean(); } // Load selected language file.