1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

Fixed absolute paths that were used for the PDF logo.

This commit is contained in:
David Steele
2016-05-26 14:17:50 -04:00
parent b19143b6ea
commit cf344c144f
4 changed files with 13 additions and 4 deletions

View File

@@ -181,11 +181,12 @@ sub new
${$self->{oManifest}}{render}{$strType} = $oRenderHash;
}
# Set the doc path variable
$self->variableSet('doc-path', $self->{strDocPath});
# Read variables from manifest
$self->variableListParse($self->{oManifestXml}->nodeGet('variable-list', false), $oVariableOverride);
# use Data::Dumper; confess Dumper($self->{oVariable});
# Return from function and log return values if any
return logDebugReturn
(

View File

@@ -95,7 +95,7 @@ sub process
my $oRender = $self->{oManifest}->renderGet(RENDER_TYPE_PDF);
# Copy the logo
copy('/backrest/doc/resource/latex/cds-logo.eps', "$self->{strLatexPath}/logo.eps")
copy("$self->{oManifest}{strDocPath}/resource/latex/cds-logo.eps", "$self->{strLatexPath}/logo.eps")
or confess &log(ERROR, "unable to copy logo");
my $strLatex = $self->{oManifest}->variableReplace(fileStringRead($self->{strPreambleFile}), 'latex') . "\n";

View File

@@ -13,7 +13,7 @@
<variable key="project-favicon">favicon.png</variable>
<!-- Logo locations -->
<variable key="logo">/backrest/doc/output/latex/logo</variable>
<variable key="logo">{[doc-path]}/output/latex/logo</variable>
<!-- HTML variables -->
<variable key="html-footer" eval='y'>

View File

@@ -109,6 +109,14 @@
<p>Fixed syntax that was not compatible with Perl 5.2X.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideator id="vondendriesch.adrian"/>
</release-item-contributor-list>
<p>Fixed absolute paths that were used for the PDF logo.</p>
</release-item>
</release-bug-list>
<release-feature-list>