]> git.mjollnir.org Git - s9y.git/commitdiff
fix for voodoopad url writer
authorfraccy <fraccy>
Thu, 30 Jun 2005 16:16:21 +0000 (16:16 +0000)
committerfraccy <fraccy>
Thu, 30 Jun 2005 16:16:21 +0000 (16:16 +0000)
include/admin/importers/voodoopad.inc.php

index 8a682cd71d399ac16db314a9f063e644c00f4c14..f52c970e60b608c7eecda07c816d0e10b459b6c7 100644 (file)
@@ -129,7 +129,7 @@ class Serendipity_Import_VoodooPad extends Serendipity_Import {
                     // Pluck out the existing one if its there
                     $page = serendipity_db_query("SELECT * 
                                                     FROM {$serendipity['dbPrefix']}staticpages 
-                                                    WHERE filename = '" . serendipity_db_escape_string($mykey) . "'
+                                                    WHERE filename = '" . serendipity_db_escape_string($mykey.'.htm') . "'
                                                     LIMIT 1", true, 'assoc');
                     if (is_array($page)) {
                         $thispage =& $page;
@@ -138,14 +138,14 @@ class Serendipity_Import_VoodooPad extends Serendipity_Import {
                         }
                     }
     
-                    $thispage['filename']  = $mykey;
+                    $thispage['filename']  = $mykey.'.htm';
                     // Thanks for pointing this out to me and not just fixing it, I'm learning.
-                   $thispage['permalink'] = $serendipity['serendipityHTTPPath'] . 'index.php?serendipity[subpage]=' . $mykey .'.htm';
+                   $thispage['permalink'] = $serendipity['serendipityHTTPPath'] . 'index.php?serendipity[subpage]=' . $mykey;
                     break;
 
                 case 'alias': // The title and the string used to match links
                     $thispage['articleformattitle'] = $this->data['wikiName'];
-                    $thispage['pagetitle'] = $elements[$key_a]->data;
+                    $thispage['pagetitle'] = $mykey;
                     $thispage['headline'] = $elements[$key_a]->data;
                     break;