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:
parent
8552727d52
commit
e2264e60b4
@ -402,8 +402,9 @@ function _get_page_request($page) {
|
|||||||
$args = _get_query_parts();
|
$args = _get_query_parts();
|
||||||
|
|
||||||
if(count($args) == 0 || strlen($args[0]) == 0) {
|
if(count($args) == 0 || strlen($args[0]) == 0) {
|
||||||
$page_name = $config->get_string('front_page', 'post/list');
|
$parts = split('/', $config->get_string('front_page', 'post/list'));
|
||||||
$args = array();
|
$page_name = array_shift($parts);
|
||||||
|
$args = $parts;
|
||||||
}
|
}
|
||||||
else if(count($args) == 1) {
|
else if(count($args) == 1) {
|
||||||
$page_name = $args[0];
|
$page_name = $args[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user