Allow WordPress installation URI and blog URI to be different.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-04-28 07:27:03 +00:00
parent 0a76831fc7
commit 4e4cb4e004
15 changed files with 52 additions and 34 deletions

View File

@@ -373,7 +373,7 @@ function next_posts($max_page = 0) { // original by cfactor at cooltux.org
if (!$paged) $paged = 1;
$nextpage = intval($paged) + 1;
if (!$max_page || $max_page >= $nextpage) {
echo get_settings('siteurl') .'/'.$pagenow.$querystring_start.
echo get_settings('home') .'/'.$pagenow.$querystring_start.
($qstr == '' ? '' : $qstr.$querystring_separator) .
'paged'.$querystring_equal.$nextpage;
}
@@ -425,7 +425,7 @@ function previous_posts() { // original by cfactor at cooltux.org
}
$nextpage = intval($paged) - 1;
if ($nextpage < 1) $nextpage = 1;
echo get_settings('siteurl') .'/'.$pagenow.$querystring_start.
echo get_settings('home') .'/'.$pagenow.$querystring_start.
($qstr == '' ? '' : $qstr.$querystring_separator) .
'paged'.$querystring_equal.$nextpage;
}