Skip to content

Commit

Permalink
BugFix: page refrence link for http-medialinks corrected
Browse files Browse the repository at this point in the history
Signed-off-by: Taggic <taggic@t-online.de>
  • Loading branch information
Taggic committed Jan 27, 2012
1 parent 9bc3b2a commit 8126b46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,16 +610,15 @@ function _prepare_output($m_link,$page,$img,$counter)
}
elseif ( preg_match('#^([a-z0-9\-\.+]+?)://#i',$m_link) ) {
// external link (accepts all protocols)
$t2 = '<a class=wikilink1 href="'.$t1;
$t2 = $t1;
// echo $t1.' ext: -> '.$m_link.'<br />';
}
// turn it into wiki link without "pages"
/* $t1= html_wikilink($t1,$t1); */
else {
$t2 = str_replace("/", ":", $t1);
$t2 = '<a class=wikilink1 href="'. DOKU_URL . "doku.php?id=" . substr($t2, 1, strlen($t2));
}

$t2 = '<a class=wikilink1 href="'. DOKU_URL . "doku.php?id=" . substr($t2, 1, strlen($t2));
$t1 = $t2 . '" title="' . $t1 . '" rel="nofollow">' . $t1 . '</a>';


Expand Down

0 comments on commit 8126b46

Please sign in to comment.