Skip to content

Commit

Permalink
Shorten path printed to console when using dashboard to create a page
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 12, 2023
1 parent 5ab41f2 commit b054d7d
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(sprintf("Created file '%s'", $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 b054d7d

Please sign in to comment.