From bdb3a40c161b8cfedd063b36342de94492fdb9cf Mon Sep 17 00:00:00 2001 From: Guillaume Mutschler Date: Sat, 29 Jul 2023 09:46:46 +0200 Subject: [PATCH] BREAKING CHANGE(config): Change `404` key to `not_found` (#7) --- config/breadcrumb.php | 4 ++-- src/Crumb.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/breadcrumb.php b/config/breadcrumb.php index 09c51fe..e4f9eb6 100644 --- a/config/breadcrumb.php +++ b/config/breadcrumb.php @@ -62,7 +62,7 @@ /* |-------------------------------------------------------------------------- - | 404 + | Not Found |-------------------------------------------------------------------------- | | This option controls the label used when displaying the 404 error page @@ -70,5 +70,5 @@ | */ - '404' => __('Page not found', 'sage'), + 'not_found' => __('Page not found', 'sage'), ]; diff --git a/src/Crumb.php b/src/Crumb.php index b1dba59..a47324d 100644 --- a/src/Crumb.php +++ b/src/Crumb.php @@ -181,7 +181,7 @@ public function build() if (is_404()) { return $this->add( - $this->config['404'] + $this->config['not_found'] ); }