]> git.mjollnir.org Git - s9y.git/commitdiff
Fix URL permalink lookup in some cases
authorgarvinhicking <garvinhicking>
Wed, 6 Jun 2007 09:11:00 +0000 (09:11 +0000)
committergarvinhicking <garvinhicking>
Wed, 6 Jun 2007 09:11:00 +0000 (09:11 +0000)
docs/NEWS
index.php
serendipity_config.inc.php

index 800f5bf425b2784a457e2da2da8f84d333bb127e..8b432f3cd3d474bf78269f0cc46ca03c117957a8 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,8 @@
 Version 1.2 ()
 ------------------------------------------------------------------------
 
+    * Fix URL permalink lookup in some cases (garvinhicking, beta2)
+
     * Add admin backend templates for main area and the entry editor.
       Falls back to default PHP output if Smarty cannot be utilized.
       (garvinhicking)
index 5e53d54de1cf60d0046d2718d65c5a9658f9467a..7e3ccfb4ced4cc2dee668fe9cc20de83f0aa6944 100644 (file)
--- a/index.php
+++ b/index.php
@@ -241,7 +241,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
             preg_match(PAT_PERMALINK, $uri, $matches) ) {
     $serendipity['view'] = 'entry';
 
-    $matches[1] = serendipity_searchPermalink($serendipity['permalinkStructure'], $uri, $matches[1], 'entry');
+    $matches[1] = serendipity_searchPermalink($serendipity['permalinkStructure'], $uri, (!empty($matches[2]) ? $matches[2] : $matches[1]), 'entry');
     serendipity_rememberComment();
 
     if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) {
index 663350ce947dbea479a34c80deaea602d0ecb152..b27cf96212941846f54b4cb96b573d02e9f8ca98 100644 (file)
@@ -42,7 +42,7 @@ if (defined('USE_MEMSNAP')) {
 }
 
 // The version string
-$serendipity['version']         = '1.2-beta1';
+$serendipity['version']         = '1.2-beta2';
 
 // Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
 $serendipity['production']      = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);