Skip to content

Commit

Permalink
Merge pull request #427 from hydephp/424-abstractmarkdownpage-save-me…
Browse files Browse the repository at this point in the history
…thod-should-use-hydepath

Fix #424 AbstractMarkdownPage save method should use Hyde::path() hydephp/develop@c9d238d
  • Loading branch information
github-actions committed Aug 17, 2022
1 parent 1e15613 commit 195c76c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Contracts/AbstractMarkdownPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Hyde\Framework\Contracts;

use Hyde\Framework\Hyde;
use Hyde\Framework\Models\FrontMatter;
use Hyde\Framework\Models\Markdown;

Expand Down Expand Up @@ -60,7 +61,7 @@ public function compile(): string
/** @inheritDoc */
public function save(): static
{
file_put_contents($this->getSourcePath(), ltrim("$this->matter\n$this->markdown"));
file_put_contents(Hyde::path($this->getSourcePath()), ltrim("$this->matter\n$this->markdown"));

return $this;
}
Expand Down

0 comments on commit 195c76c

Please sign in to comment.