Skip to content

Commit

Permalink
Merge pull request #1492 from hydephp/shorten-dashboard-path-console-…
Browse files Browse the repository at this point in the history
…output

Shorten path printed to console when using dashboard to create a page
  • Loading branch information
caendesilva authored Dec 12, 2023
2 parents e361c3e + b054d7d commit 6d2f01a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This serves two purposes:
- for new features.

### Changed
- for changes in existing functionality.
- Shortened the path printed to console when using dashboard to create a page in https://github.com/hydephp/develop/pull/1492

### Deprecated
- for soon-to-be removed features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function createPage(): void
$this->abort($exception->getCode(), $exception->getMessage());
}

$this->writeToConsole("Created file '$path'", 'dashboard@createPage');
$this->writeToConsole(sprintf("Created file '%s'", Hyde::pathToRelative($path)), 'dashboard@createPage');

$this->flash('justCreatedPage', RouteKey::fromPage($pageClass, $pageClass::pathToIdentifier($path))->get());
$this->setJsonResponse(201, "Created file '$path'!");
Expand Down

0 comments on commit 6d2f01a

Please sign in to comment.