mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16080] Change location as it should have been.
PHPBB3-16080
This commit is contained in:
parent
ebd958c728
commit
1de4a65e58
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue