From f122f35020ca0f5b52e928209062273c092a06b7 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Tue, 11 Nov 2003 20:49:00 +0000 Subject: [PATCH] Fix missing '/' in permalinks when not using the rewritable permalink option git-svn-id: https://develop.svn.wordpress.org/trunk@541 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2template.functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 6b835eca99..056eec7879 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -423,7 +423,7 @@ function get_permalink($id=false) { ); return $siteurl . str_replace($rewritecode, $rewritereplace, get_settings('permalink_structure')); } else { // if they're not using the fancy permalink option - return $siteurl . $blogfilename.$querystring_start.'p'.$querystring_equal.$post->ID; + return $siteurl . '/' . $blogfilename.$querystring_start.'p'.$querystring_equal.$post->ID; } } else { // if an ID is given $idpost = $wpdb->get_row("SELECT post_date, post_name FROM $tableposts WHERE ID = $id"); @@ -437,7 +437,7 @@ function get_permalink($id=false) { ); return $siteurl . str_replace($rewritecode, $rewritereplace, get_settings('permalink_structure')); } else { - return $siteurl . $blogfilename.$querystring_start.'p'.$querystring_equal.$idpost->ID; + return $siteurl . '/' . $blogfilename.$querystring_start.'p'.$querystring_equal.$idpost->ID; } } }