diff --git a/engine/core/class/CodePressCMS.php b/engine/core/class/CodePressCMS.php index 7a67e4e..5e80b15 100644 --- a/engine/core/class/CodePressCMS.php +++ b/engine/core/class/CodePressCMS.php @@ -705,12 +705,9 @@ class CodePressCMS { // Get the directory name from the path, not from a potential file $pathParts = explode('/', $pagePath); $dirName = end($pathParts); - $title = ucfirst($dirName) ?: 'Home'; + $title = $this->formatDisplayName($dirName) ?: 'Home'; - // Force the title to be correct $content = '