Permalink
Browse files

BugFix: page refrence link for http-medialinks corrected

Signed-off-by: Taggic <taggic@t-online.de>
  • Loading branch information...
Taggic committed Jan 27, 2012
1 parent 9bc3b2a commit 8126b46058a0c7e81dd05b4381f448c82ba5b730
Showing with 2 additions and 3 deletions.
  1. +2 −3 syntax.php
View
@@ -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>';

0 comments on commit 8126b46

Please sign in to comment.