Skip to content

Commit

Permalink
BREAKING CHANGE(config): Change 404 key to not_found (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmutschler authored Jul 29, 2023
1 parent b67320a commit bdb3a40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@

/*
|--------------------------------------------------------------------------
| 404
| Not Found
|--------------------------------------------------------------------------
|
| This option controls the label used when displaying the 404 error page
| on the breadcrumb.
|
*/

'404' => __('Page not found', 'sage'),
'not_found' => __('Page not found', 'sage'),
];
2 changes: 1 addition & 1 deletion src/Crumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function build()

if (is_404()) {
return $this->add(
$this->config['404']
$this->config['not_found']
);
}

Expand Down

0 comments on commit bdb3a40

Please sign in to comment.