mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 16:45:19 +02:00
Deal with incorrect keys in the config file
git-svn-id: file:///svn/phpbb/trunk@6236 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6742bcece7
commit
0a007bd5d7
@ -2927,15 +2927,19 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$cfg_data = parse_cfg_file("$root_path$mode/imageset.cfg");
|
$cfg_data = parse_cfg_file("$root_path$mode/imageset.cfg");
|
||||||
|
$imageset_definitions = explode(', ', $this->imageset_keys);
|
||||||
|
|
||||||
foreach ($cfg_data as $key => $value)
|
foreach ($cfg_data as $key => $value)
|
||||||
{
|
{
|
||||||
if (strpos($key, 'img_') === 0)
|
if (strpos($key, 'img_') === 0)
|
||||||
{
|
{
|
||||||
$key = substr($key, 4);
|
$key = substr($key, 4);
|
||||||
|
if (in_array($key, $imageset_definitions))
|
||||||
|
{
|
||||||
$sql_ary[$key] = str_replace('{PATH}', "styles/$path/imageset/", trim($value));
|
$sql_ary[$key] = str_replace('{PATH}', "styles/$path/imageset/", trim($value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
unset($cfg_data);
|
unset($cfg_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user