From c6d99464aac1447ad5c5b414d082ae49de86ca2d Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 1 Aug 2007 16:12:34 +0000 Subject: [PATCH] default base_href set in initext git-svn-id: file:///home/shish/svn/shimmie2/trunk@406 7f39781d-f577-437e-ae19-be835c7a54ca --- core/util.inc.php | 2 +- ext/setup/main.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index b09acc06..df9f2086 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -97,7 +97,7 @@ function make_link($page=null, $query=null) { if(is_null($page)) $page = $config->get_string('main_page'); - $base = $config->get_string('base_href', './index.php?q='); + $base = $config->get_string('base_href'); if(is_null($query)) { return "$base/$page"; diff --git a/ext/setup/main.php b/ext/setup/main.php index 763a94f4..f009e8c2 100644 --- a/ext/setup/main.php +++ b/ext/setup/main.php @@ -133,6 +133,7 @@ class Setup extends Extension { $config->set_default_string("title", "Shimmie"); $config->set_default_string("front_page", "post/list"); $config->set_default_string("main_page", "post/list"); + $config->set_default_string("base_href", "./index.php?q="); } if(is_a($event, 'PageRequestEvent') && ($event->page_name == "setup")) {