From ebd958c728b6bfe2992e7399c286d05d876454f8 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Sun, 11 Aug 2019 23:19:06 +0200 Subject: [ticket/16080] Provide a back-trace for deleted installed style That's a very edge case, I am using the same approach done in user.php PHPBB3-16080 --- phpBB/includes/functions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c9f589c174..1af919b8a6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2734,6 +2734,11 @@ function build_hidden_fields($field_ary, $specialchar = false, $stripslashes = f */ function parse_cfg_file($filename, $lines = false) { + if (!file_exists($filename)) + { + trigger_error('NO_STYLE_DATA', E_USER_ERROR); + } + $parsed_items = array(); if ($lines === false) -- cgit v1.2.1