mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-03 13:27:35 +02:00
Fixed bug in build script that auto creates build directory
This commit is contained in:
@@ -76,6 +76,10 @@ class Build
|
|||||||
}
|
}
|
||||||
$output = $this->getOutput($template, $page->variables);
|
$output = $this->getOutput($template, $page->variables);
|
||||||
|
|
||||||
|
if (!file_exists(config('output_dir'))) {
|
||||||
|
mkdir(config('output_dir'));
|
||||||
|
}
|
||||||
|
|
||||||
file_put_contents(config('output_dir') . '/' . $page->name . '.html', $output);
|
file_put_contents(config('output_dir') . '/' . $page->name . '.html', $output);
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
Reference in New Issue
Block a user