diff --git a/code/models/DocumentationFolder.php b/code/models/DocumentationFolder.php index 679b3d8..a3132f8 100644 --- a/code/models/DocumentationFolder.php +++ b/code/models/DocumentationFolder.php @@ -14,6 +14,10 @@ class DocumentationFolder extends DocumentationPage { * @return string */ public function getTitle() { - return DocumentationHelper::clean_page_name($this->filename); + $path = explode(DIRECTORY_SEPARATOR, trim($this->getPath(), DIRECTORY_SEPARATOR)); + $folderName = array_pop($path); + + return DocumentationHelper::clean_page_name($folderName); } + } \ No newline at end of file