Skip to content

Commit

Permalink
Fix link title with useheading on for converted links
Browse files Browse the repository at this point in the history
And another fix for converted links: respect useheading again.
  • Loading branch information
michitux committed Feb 21, 2013
1 parent 7100e4a commit 1473d1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/locallink.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function render($mode, &$renderer, $data) {
global $ID;
if ($mode == 'xhtml') {
/** @var Doku_Renderer_xhtml $renderer */
list($hash, $name, $default) = $data;
list($hash, $name, $id) = $data;
// construct title in the same way it would be done for internal links
$default = $renderer->_simpleTitle($default);
$name = $renderer->_getLinkTitle($name, $default, $isImage);
$default = $renderer->_simpleTitle($id);
$name = $renderer->_getLinkTitle($name, $default, $isImage, $id);
$title = $ID.'';
$renderer->doc .= '<a href="#'.$hash.'" title="'.$title.'" class="wikilink1">';
$renderer->doc .= $name;
Expand Down

0 comments on commit 1473d1a

Please sign in to comment.