diff -r aa8ffe41d1c4 -r 95c4d91bd954 includes/paths.php
--- a/includes/paths.php Tue Aug 14 20:48:29 2007 -0400
+++ b/includes/paths.php Thu Aug 16 20:35:49 2007 -0400
@@ -384,14 +384,13 @@
{
if( is_string(getConfig('main_page')) )
{
- header('Location: '.makeUrl(getConfig('main_page')));
- die('If you aren\'t redirected, click here.');
+ $main_page = makeUrl(getConfig('main_page'));
}
else
{
- header('Location: '.makeUrl($this->pages[0]['urlname']));
- die('If you aren\'t redirected, click here.');
+ $main_page = makeUrl($this->pages[0]['urlname']);
}
+ redirect($main_page, 'Redirecting...', 'Invalid request, redirecting to main page', 0);
exit;
}