# HG changeset patch # User Dan # Date 1191296904 14400 # Node ID f7e83b6db3be20b227f189ac5bf3d272dfd16682 # Parent ebf00a7d21db10603511992e4017ef4c74682364 Fixed: RenderMan::parse_internal_links() problems with prepending Project: instead of Site_name: to project page alias-namespace links diff -r ebf00a7d21db -r f7e83b6db3be includes/render.php --- a/includes/render.php Mon Oct 01 22:18:51 2007 -0400 +++ b/includes/render.php Mon Oct 01 23:48:24 2007 -0400 @@ -460,8 +460,8 @@ list($page_id, $namespace) = RenderMan::strToPageID($matches[1][$i]); $pid_clean = $paths->nslist[$namespace] . sanitize_page_id($page_id); - $url = makeUrl($matches[1][$i], false, true); - $inner_text = htmlspecialchars(get_page_title($pid_clean)); + $url = makeUrl($pid_clean, false, true); + $inner_text = ( isPage($pid_clean) ) ? htmlspecialchars(get_page_title($pid_clean)) : htmlspecialchars($matches[1][$i]); $quot = '"'; $exists = ( isPage($pid_clean) ) ? '' : ' class="wikilink-nonexistent"';