One more place to use the global mod_rewrite option
authorBen Klang <ben@alkaloid.net>
Wed, 3 Nov 2010 18:33:28 +0000 (14:33 -0400)
committerBen Klang <ben@alkaloid.net>
Wed, 3 Nov 2010 18:35:06 +0000 (14:35 -0400)
wicked/lib/Text_Wiki/Render/Xhtml/Wikilink2.php

index 944f969..53037c9 100644 (file)
@@ -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')).'"';