Skip to content

Commit

Permalink
Always use / as fallback layout title
Browse files Browse the repository at this point in the history
Port #14195 to 4.x
  • Loading branch information
garas authored and markstory committed Jan 20, 2020
1 parent 84ddf2d commit 6657892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ public function renderLayout(string $content, ?string $layout = null): string

$title = $this->Blocks->get('title');
if ($title === '') {
$title = Inflector::humanize((string)$this->templatePath);
$title = Inflector::humanize(str_replace(DIRECTORY_SEPARATOR, '/', (string)$this->templatePath));
$this->Blocks->set('title', $title);
}

Expand Down

0 comments on commit 6657892

Please sign in to comment.