From e572be1068b97248a28568dc6d7c4ac34be80be6 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 3 Nov 2010 14:33:28 -0400 Subject: [PATCH] One more place to use the global mod_rewrite option --- wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php b/wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php index 944f969ac..53037c929 100644 --- a/wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php +++ b/wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php @@ -67,7 +67,7 @@ class Text_Wiki_Render_Xhtml_Wikilink2 extends Text_Wiki_Render_Xhtml_Wikilink return $this->textEncode($text); } - $href = sprintf($new_url, (!empty($GLOBALS['conf']['options']['use_mod_rewrite']) ? htmlspecialchars($page) : $this->urlEncode($page))); + $href = sprintf($new_url, (($GLOBALS['conf']['urls']['pretty'] == 'rewrite') ? htmlspecialchars($page) : $this->urlEncode($page))); // get the appropriate CSS class and new-link text $css = ' class="'.$this->textEncode($this->getConf('css_new')).'"'; -- 2.11.0