# HG changeset patch
# User Dan
# Date 1222691159 14400
# Node ID 6865705ec8a615d51a09bac234c09ffdf5647f98
# Parent f70d764aab339f41941f0e7bdae39131a5329347
Marked Text_Wiki's parse_internal_links() as deprecated.
diff -r f70d764aab33 -r 6865705ec8a6 includes/wikiengine/Render/Xhtml/Wikilink.php
--- 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 = '';
+ $start = '';
$end = '';
-
}
if (!strlen($text)) {
$start .= $this->textEncode($options['page']);