aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-08-11 23:19:06 +0200
committer3D-I <eataly3d@gmail.com>2019-08-11 23:21:48 +0200
commitebd958c728b6bfe2992e7399c286d05d876454f8 (patch)
treeb1f324c0b9224e13d39e9cca301fe26962400ad0 /phpBB/includes
parent0a5d167441004c4ed56b6b7cf32fd0c0eb5ae443 (diff)
downloadforums-ebd958c728b6bfe2992e7399c286d05d876454f8.tar
forums-ebd958c728b6bfe2992e7399c286d05d876454f8.tar.gz
forums-ebd958c728b6bfe2992e7399c286d05d876454f8.tar.bz2
forums-ebd958c728b6bfe2992e7399c286d05d876454f8.tar.xz
forums-ebd958c728b6bfe2992e7399c286d05d876454f8.zip
[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
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 5 insertions, 0 deletions
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)