]> git.mjollnir.org Git - s9y.git/commitdiff
Wrong "forceNone" check.
authorgarvinhicking <garvinhicking>
Sun, 31 Jul 2005 21:16:47 +0000 (21:16 +0000)
committergarvinhicking <garvinhicking>
Sun, 31 Jul 2005 21:16:47 +0000 (21:16 +0000)
include/functions_permalinks.inc.php

index 7645dfe3cb1e8d3793aabda779ecfc256e86e310..6d4a57efec6d77136de0f139bbb61a2373dcde8f 100644 (file)
@@ -356,7 +356,7 @@ function serendipity_buildPermalinks() {
 /* Uses logic to figure out how the URI should look, based on current rewrite rule */
 function serendipity_rewriteURL($path, $key='baseURL', $forceNone = false) {
     global $serendipity;
-    return $serendipity[$key] . (($serendipity['rewrite'] == 'none') || ($serendipity['rewrite'] != 'none' && $forceNone) ? $serendipity['indexFile'] . '?/' : '') . $path;
+    return $serendipity[$key] . ($serendipity['rewrite'] == 'none' || ($serendipity['rewrite'] != 'none' && $forceNone) ? $serendipity['indexFile'] . '?/' : '') . $path;
 }
 
 function serendipity_makePermalink($format, $data, $type = 'entry') {