mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
[ticket/12262] Fix location list for acp events with "Locations:"
PHPBB3-12262
This commit is contained in:
parent
e1d5702853
commit
8aa22550b9
1 changed files with 13 additions and 2 deletions
|
@ -54,7 +54,7 @@ function export_from_eventsmd($phpbb_root_path, $filter)
|
||||||
{
|
{
|
||||||
$file_details = substr($file_details, strlen("* Locations:\n + "));
|
$file_details = substr($file_details, strlen("* Locations:\n + "));
|
||||||
$files = explode("\n + ", $file_details);
|
$files = explode("\n + ", $file_details);
|
||||||
$prosilver = $subsilver2 = array();
|
$prosilver = $subsilver2 = $adm = array();
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
if (strpos($file, 'styles/prosilver/template/') === 0)
|
if (strpos($file, 'styles/prosilver/template/') === 0)
|
||||||
|
@ -65,9 +65,20 @@ function export_from_eventsmd($phpbb_root_path, $filter)
|
||||||
{
|
{
|
||||||
$subsilver2[] = substr($file, strlen('styles/subsilver2/template/'));
|
$subsilver2[] = substr($file, strlen('styles/subsilver2/template/'));
|
||||||
}
|
}
|
||||||
|
if (strpos($file, 'adm/style/') === 0)
|
||||||
|
{
|
||||||
|
$adm[] = substr($file, strlen('adm/style/'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if ($filter == 'acp')
|
||||||
|
{
|
||||||
|
echo implode(', ', $adm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
echo implode(', ', $prosilver) . ' || ' . implode(', ', $subsilver2);
|
echo implode(', ', $prosilver) . ' || ' . implode(', ', $subsilver2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if ($filter == 'acp')
|
else if ($filter == 'acp')
|
||||||
{
|
{
|
||||||
echo substr($file_details, strlen("* Location: adm/style/"));
|
echo substr($file_details, strlen("* Location: adm/style/"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue