[ticket/16080] Change location as it should have been.

PHPBB3-16080
This commit is contained in:
3D-I 2019-08-12 00:48:04 +02:00
parent ebd958c728
commit 1de4a65e58
2 changed files with 6 additions and 5 deletions

View file

@ -1123,7 +1123,13 @@ class acp_styles
*/ */
protected function read_style_cfg($dir) 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'); static $required = array('name', 'phpbb_version', 'copyright');
$cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg'); $cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg');
// Check if it is a valid file // Check if it is a valid file

View file

@ -2734,11 +2734,6 @@ function build_hidden_fields($field_ary, $specialchar = false, $stripslashes = f
*/ */
function parse_cfg_file($filename, $lines = false) function parse_cfg_file($filename, $lines = false)
{ {
if (!file_exists($filename))
{
trigger_error('NO_STYLE_DATA', E_USER_ERROR);
}
$parsed_items = array(); $parsed_items = array();
if ($lines === false) if ($lines === false)