mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 20:28:51 +00:00
[ticket/12273] Only check selected files
PHPBB3-12273
This commit is contained in:
parent
23dbddc59d
commit
f676f50c22
1 changed files with 6 additions and 3 deletions
|
@ -198,7 +198,6 @@ class md_exporter
|
|||
$files = explode("\n + ", $file_details);
|
||||
foreach ($files as $file)
|
||||
{
|
||||
|
||||
if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)
|
||||
{
|
||||
$files_list['prosilver'][] = substr($file, strlen('styles/prosilver/template/'));
|
||||
|
@ -253,9 +252,13 @@ class md_exporter
|
|||
$file_content = file_get_contents($this->root_path . $file);
|
||||
foreach ($events as $event)
|
||||
{
|
||||
if (strpos($file_content, '<!-- EVENT ' . $event . ' -->') === false)
|
||||
if (($this->filter !== 'adm') && strpos($file, 'adm/style/') !== 0
|
||||
|| ($this->filter === 'adm') && strpos($file, 'adm/style/') === 0)
|
||||
{
|
||||
throw new \LogicException("Event '{$event}' not found in file '{$file}'", 2);
|
||||
if (strpos($file_content, '<!-- EVENT ' . $event . ' -->') === false)
|
||||
{
|
||||
throw new \LogicException("Event '{$event}' not found in file '{$file}'", 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue