diff --git a/contrib/home/main.php b/contrib/home/main.php
index 5e5457a4..eec55f9a 100644
--- a/contrib/home/main.php
+++ b/contrib/home/main.php
@@ -68,13 +68,13 @@ class Home extends Extension {
return "
$main_links
-
diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php
index 2118e6b3..f7b38aaf 100644
--- a/contrib/tag_history/main.php
+++ b/contrib/tag_history/main.php
@@ -73,7 +73,7 @@ class Tag_History extends Extension {
// tried to set it too the same thing so ignore it (might be a bot)
// go back to the index page with you
$page->set_mode("redirect");
- $page->set_redirect(make_link("index"));
+ $page->set_redirect(make_link());
return;
}
diff --git a/core/navblock.class.php b/core/navblock.class.php
index bc5dca64..e56cdae3 100644
--- a/core/navblock.class.php
+++ b/core/navblock.class.php
@@ -2,7 +2,7 @@
class NavBlock extends Block {
public function NavBlock() {
$this->header = "Navigation";
- $this->body = "
Index";
+ $this->body = "
Index";
$this->section = "left";
$this->position = 0;
}
diff --git a/core/util.inc.php b/core/util.inc.php
index 2abecb72..a3b552c4 100644
--- a/core/util.inc.php
+++ b/core/util.inc.php
@@ -92,8 +92,11 @@ function tag_explode($tags) {
* HTML Generation *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-function make_link($page, $query=null) {
+function make_link($page=null, $query=null) {
global $config;
+
+ if(is_null($page)) $page = $config->get_string('front_page', 'post/list');
+
$base = $config->get_string('base_href', './index.php?q=');
if(is_null($query)) {
diff --git a/ext/admin/main.php b/ext/admin/main.php
index e86d0838..354f8092 100644
--- a/ext/admin/main.php
+++ b/ext/admin/main.php
@@ -32,7 +32,7 @@ class AdminPage extends Extension {
if($image) {
send_event(new ImageDeletionEvent($image));
$event->page->set_mode("redirect");
- $event->page->set_redirect(make_link("index"));
+ $event->page->set_redirect(make_link());
}
}
}
diff --git a/ext/comment/theme.php b/ext/comment/theme.php
index ea6ba677..e4b74d7c 100644
--- a/ext/comment/theme.php
+++ b/ext/comment/theme.php
@@ -7,7 +7,7 @@ class CommentListTheme extends Themelet {
$h_prev = ($page_number <= 1) ? "Prev" :
"
Prev";
- $h_index = "
Index";
+ $h_index = "
Index";
$h_next = ($page_number >= $total_pages) ? "Next" :
"
Next";
diff --git a/ext/index/theme.php b/ext/index/theme.php
index d52af42c..a971109f 100644
--- a/ext/index/theme.php
+++ b/ext/index/theme.php
@@ -54,11 +54,11 @@ class IndexTheme extends Themelet {
$h_prev = ($page_number <= 1) ? "Prev" : "
Prev";
- $h_index = "
Index";
+ $h_index = "
Index";
$h_next = ($page_number >= $total_pages) ? "Next" : "
Next";
$h_search_string = count($search_terms) == 0 ? "Search" : html_escape(implode(" ", $search_terms));
- $h_search_link = make_link("index");
+ $h_search_link = make_link();
$h_search = "