Skip to content

Commit

Permalink
Use config in taxonomy::layout()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Oct 29, 2024
1 parent 43d1b06 commit 3b0a1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Taxonomies/Taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function layout($layout = null)
return $this
->fluentlyGetOrSet('layout')
->getter(function ($layout) {
return $layout ?? 'layout';
return $layout ?? config('statamic.routes.layout', 'layout');
})
->args(func_get_args());
}
Expand Down

0 comments on commit 3b0a1ba

Please sign in to comment.