Fixed the compiler run on readme placeholder error

This commit is contained in:
2016-10-24 01:05:06 +02:00
parent 33f3bb5652
commit e63441531b
2 changed files with 23 additions and 16 deletions

View File

@@ -173,11 +173,16 @@ class Compiler extends Infusion
}
}
// do a final run to update the readme file
$two = 0;
foreach ($this->newFiles['static'] as $static)
{
if (('README.md' == $static['name'] || 'README.txt' == $static['name']) && $this->componentData->addreadme && JFile::exists($static['path']))
{
$this->buildReadMe($static['path']);
$two++;
}
if ($two == 2)
{
break;
}
}