FIX: DocumentationFolder titles not being set.

This commit is contained in:
Will Rossiter 2014-09-21 11:20:01 +12:00
parent 8057c9257c
commit ecac89c0c7

View File

@ -14,6 +14,10 @@ class DocumentationFolder extends DocumentationPage {
* @return string * @return string
*/ */
public function getTitle() { 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);
} }
} }