allow default page to have a slash

git-svn-id: file:///home/shish/svn/shimmie2/trunk@379 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-27 00:20:12 +00:00
parent 8552727d52
commit e2264e60b4

View File

@ -402,8 +402,9 @@ function _get_page_request($page) {
$args = _get_query_parts();
if(count($args) == 0 || strlen($args[0]) == 0) {
$page_name = $config->get_string('front_page', 'post/list');
$args = array();
$parts = split('/', $config->get_string('front_page', 'post/list'));
$page_name = array_shift($parts);
$args = $parts;
}
else if(count($args) == 1) {
$page_name = $args[0];