fixed logo copy
This commit is contained in:
parent
fc24f4a2aa
commit
098618704a
|
@ -284,7 +284,7 @@ function installPDFTemplates() {
|
||||||
$entry = $templateDir->read();
|
$entry = $templateDir->read();
|
||||||
while ($entry){
|
while ($entry){
|
||||||
$path = $basePath . '/logos/' . $entry;
|
$path = $basePath . '/logos/' . $entry;
|
||||||
if ((strpos($entry, '.') !== 1) && !is_file($path)) {
|
if ((strpos($entry, '.') !== 0) && !is_file($path)) {
|
||||||
$template = $templatePath . '/' . $entry;
|
$template = $templatePath . '/' . $entry;
|
||||||
logNewMessage(LOG_DEBUG, 'Copy template ' . $template . ' to ' . $path);
|
logNewMessage(LOG_DEBUG, 'Copy template ' . $template . ' to ' . $path);
|
||||||
@copy($template, $path);
|
@copy($template, $path);
|
||||||
|
|
Loading…
Reference in New Issue