Improve tree api
Cette révision appartient à :
révisé par
Stéphane Goetz
Parent
290f52d181
révision
a044b4b0ca
@ -53,7 +53,7 @@ abstract class MarkdownPage extends SimplePage
|
||||
|
||||
public static function fromFile(Content $file, $params)
|
||||
{
|
||||
$page = new static($file->title, file_get_contents($file->getPath()));
|
||||
$page = new static($file->getTitle(), $file->getContent());
|
||||
$page->setFile($file);
|
||||
$page->setParams($params);
|
||||
|
||||
|
@ -56,7 +56,7 @@ class MarkdownPage extends \Todaymade\Daux\Format\Base\MarkdownPage
|
||||
$entry_page['View Documentation'] = $params['base_page'] . $params['entry_page']->getUrl();
|
||||
}
|
||||
} elseif ($params['file_uri'] === 'index') {
|
||||
$entry_page[$params['entry_page']->title] = $params['base_page'] . $params['entry_page']->getUrl();
|
||||
$entry_page[$params['entry_page']->getTitle()] = $params['base_page'] . $params['entry_page']->getUrl();
|
||||
}
|
||||
|
||||
$page = [
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur