From: Ben Klang Date: Wed, 3 Nov 2010 18:33:28 +0000 (-0400) Subject: One more place to use the global mod_rewrite option X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e572be1068b97248a28568dc6d7c4ac34be80be6;p=horde.git One more place to use the global mod_rewrite option --- 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')).'"';