mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
FIX: DocumentationFolder titles not being set.
This commit is contained in:
parent
8057c9257c
commit
ecac89c0c7
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user