diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-08-15 10:47:29 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-08-15 10:47:29 +0200 |
commit | 93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705 (patch) | |
tree | 6973785a6c379e7153d5bbca83d2d587e801da1f /phpBB/includes/acp | |
parent | a4436fb54d6b3f18d183bf919d873459eb54a9e2 (diff) | |
parent | 78f0ec8ea75504f53192612ba4f904bc00fd32d2 (diff) | |
download | forums-93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705.tar forums-93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705.tar.gz forums-93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705.tar.bz2 forums-93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705.tar.xz forums-93a472f08e3d7f5f291ac3c5c8409fbf7f5e0705.zip |
Merge pull request #5654 from 3D-I/ticket/16080
[ticket/16080] ACP - Provide meaningful error msg for deleted installed style
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 1bf5a3c6a8..5029510839 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1123,7 +1123,14 @@ class acp_styles */ protected function read_style_cfg($dir) { + // This should never happen, we give them a red warning because of its relevance. + if (!file_exists($this->styles_path . $dir . '/style.cfg')) + { + trigger_error($this->user->lang('NO_STYLE_CFG', $dir), E_USER_WARNING); + } + static $required = array('name', 'phpbb_version', 'copyright'); + $cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg'); // Check if it is a valid file |