Skip to content

Commit

Permalink
Write relation haspart metadata
Browse files Browse the repository at this point in the history
On https://www.dokuwiki.org/devel:metadata it has been documented that
the include plugin writes the relation haspart metadata, with this
change it actually writes it.
  • Loading branch information
michitux committed Sep 2, 2012
1 parent afa996b commit 67e8748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syntax/include.php
Expand Up @@ -96,8 +96,10 @@ function render($format, &$renderer, $data) {
array_push($page_stack, $id);

// add references for backlink
if ($format == 'metadata')
if ($format == 'metadata') {
$renderer->meta['relation']['references'][$id] = $exists;
$renderer->meta['relation']['haspart'][$id] = $exists;
}

$instructions = $this->helper->_get_instructions($id, $sect, $mode, $level, $flags, $root_id);

Expand Down

0 comments on commit 67e8748

Please sign in to comment.