mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/12273] Only check selected files
PHPBB3-12273
This commit is contained in:
@@ -198,7 +198,6 @@ class md_exporter
|
|||||||
$files = explode("\n + ", $file_details);
|
$files = explode("\n + ", $file_details);
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)
|
if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)
|
||||||
{
|
{
|
||||||
$files_list['prosilver'][] = substr($file, strlen('styles/prosilver/template/'));
|
$files_list['prosilver'][] = substr($file, strlen('styles/prosilver/template/'));
|
||||||
@@ -252,6 +251,9 @@ class md_exporter
|
|||||||
|
|
||||||
$file_content = file_get_contents($this->root_path . $file);
|
$file_content = file_get_contents($this->root_path . $file);
|
||||||
foreach ($events as $event)
|
foreach ($events as $event)
|
||||||
|
{
|
||||||
|
if (($this->filter !== 'adm') && strpos($file, 'adm/style/') !== 0
|
||||||
|
|| ($this->filter === 'adm') && strpos($file, 'adm/style/') === 0)
|
||||||
{
|
{
|
||||||
if (strpos($file_content, '<!-- EVENT ' . $event . ' -->') === false)
|
if (strpos($file_content, '<!-- EVENT ' . $event . ' -->') === false)
|
||||||
{
|
{
|
||||||
@@ -260,3 +262,4 @@ class md_exporter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user