Marked Text_Wiki's parse_internal_links() as deprecated.
--- a/includes/wikiengine/Render/Xhtml/Wikilink.php Sun Sep 21 09:01:27 2008 -0400
+++ b/includes/wikiengine/Render/Xhtml/Wikilink.php Mon Sep 29 08:25:59 2008 -0400
@@ -56,6 +56,11 @@
function token($options)
{
+ ##
+ ## THIS IS NOT WHAT YOU ARE LOOKING FOR!!
+ ## All of this code is deprecated. Patch RenderMan::parse_internal_links() instead!
+ ##
+
global $session;
if ( $session->sid_super )
{
@@ -120,16 +125,8 @@
// the HREF. we support both the old form where
// the page always comes at the end, and the new
// form that uses %s for sprintf()
- $href = $this->getConf('view_url');
-
- if (strpos($href, '%s') === false) {
- // use the old form (page-at-end)
- $href = $href . $page . $anchor;
- } else {
- // use the new form (sprintf format string)
- $href = sprintf($href, $page . $anchor);
- }
-
+ $href = makeUrl($page, false, true);
+
// get the CSS class and generate output
$css = $this->formatConf(' class="%s"', 'css');
@@ -143,22 +140,13 @@
// the HREF. we support both the old form where
// the page always comes at the end, and the new
// form that uses %s for sprintf()
- $href = $this->getConf('view_url');
-
- if (strpos($href, '%s') === false) {
- // use the old form (page-at-end)
- $href = $href . $page . $anchor;
- } else {
- // use the new form (sprintf format string)
- $href = sprintf($href, $page . $anchor);
- }
+ $href = makeUrl($page, false, true);
// get the CSS class and generate output
$css = $this->formatConf(' class="%s"', 'css');
- $start = '<a'.$css.' href="'.$href.$as.'"'.$nobg.' class="wikilink-nonexistent">';
+ $start = '<a'.$css.' href="'.$href.'"'.$nobg.' class="wikilink-nonexistent">';
$end = '</a>';
-
}
if (!strlen($text)) {
$start .= $this->textEncode($options['page']);