From 1de4a65e581b43a69c7d40ad705dbf752782fcff Mon Sep 17 00:00:00 2001 From: 3D-I Date: Mon, 12 Aug 2019 00:48:04 +0200 Subject: [ticket/16080] Change location as it should have been. PHPBB3-16080 --- phpBB/includes/acp/acp_styles.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/includes/acp') diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 1bf5a3c6a8..b5507005b0 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1123,7 +1123,13 @@ class acp_styles */ protected function read_style_cfg($dir) { + if (!file_exists($this->styles_path . $dir . '/style.cfg')) + { + trigger_error('NO_STYLE_DATA', E_USER_ERROR); + } + static $required = array('name', 'phpbb_version', 'copyright'); + $cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg'); // Check if it is a valid file -- cgit v1.2.1