mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Fix directory path building to allow an absolute path. Closes #16
This commit is contained in:
parent
5d3e062b96
commit
5203a5681c
@ -51,7 +51,7 @@ class HtmlCommand extends Command
|
||||
{
|
||||
$this->app = $this->getApplication();
|
||||
$source = $input->getArgument('source');
|
||||
$destination = trim($input->getArgument('destination'), DIRECTORY_SEPARATOR);
|
||||
$destination = rtrim($input->getArgument('destination'), DIRECTORY_SEPARATOR);
|
||||
$template = $input->getOption('template');
|
||||
$refresh = $input->getOption('refresh');
|
||||
$destFilename = join(DIRECTORY_SEPARATOR, array($destination, pathinfo($source, PATHINFO_FILENAME) . '.html'));
|
||||
|
@ -36,7 +36,7 @@ class PdfCommand extends HtmlCommand
|
||||
{
|
||||
$this->app = $this->getApplication();
|
||||
$source = $input->getArgument('source');
|
||||
$destination = trim($input->getArgument('destination'), DIRECTORY_SEPARATOR);
|
||||
$destination = rtrim($input->getArgument('destination'), DIRECTORY_SEPARATOR);
|
||||
$template = $input->getOption('template');
|
||||
$pdfSource = join(DIRECTORY_SEPARATOR, array($destination, '.tmp_pdf_source.html'));
|
||||
$destFilename = join(DIRECTORY_SEPARATOR, array($destination, pathinfo($source, PATHINFO_FILENAME) . '.pdf'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user