Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Fix an issue that internallink cannot really use the first heading of…
Browse files Browse the repository at this point in the history
… the target page.
  • Loading branch information
danny0838 committed Jun 22, 2015
1 parent 691f4e0 commit a5eeba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function internallink($link, $title = null, $type='internal') {
if ($id === '') $id = $ID;
$default = $this->_simpleTitle($id);
resolve_pageid(getNS($ID), $id, $exists);
$name = $this->_getLinkTitle($name, $default, $isImage, $id, $linktype);
$name = $this->_getLinkTitle($name, $default, $isImage, $id, 'content');
$this->doc .= '<link type="'.$type.'" link="'.$this->_xmlEntities($link).'" id="'.$id.'" search="'.$this->_xmlEntities($search).'" hash="'.$this->_xmlEntities($hash).'">';
$this->doc .= $name;
$this->doc .= '</link>';
Expand Down

0 comments on commit a5eeba6

Please sign in to comment.