This commit is contained in:
Stéphane Goetz
2015-07-18 21:23:02 +02:00
parent aa5602a0fb
commit 7dc7c045d4
10 changed files with 22 additions and 18 deletions

View File

@ -20,12 +20,16 @@ class MarkdownPage extends \Todaymade\Daux\Format\Base\MarkdownPage
$this->language = '';
if ($this->params['multilanguage'] && count($this->file->getParents())) {
reset($this->file->getParents());
$language_dir = current($this->file->getParents());
$this->language = $language_dir->name;
$language_dir = $this->file->getParents()[0];
$this->language = $language_dir->getName();
}
}
/**
* @param \Todaymade\Daux\Tree\Directory[] $parents
* @param bool $multilanguage
* @return array
*/
private function getBreadcrumbTrail($parents, $multilanguage)
{
if ($multilanguage && !empty($parents)) {