Fixed a bug where index was always used rather than the actual first_page
This commit is contained in:
parent
c34ff07ed0
commit
6fc52ae10e
@ -46,6 +46,9 @@
|
||||
$request = DauxHelper::get_request();
|
||||
$request = urldecode($request);
|
||||
$request_type = isset($query['method']) ? $query['method'] : '';
|
||||
if($request == 'first_page') {
|
||||
$request = $this->tree->first_page->uri;
|
||||
}
|
||||
switch ($request_type) {
|
||||
case 'DauxEdit':
|
||||
if ($this->options['file_editor']) {
|
||||
|
@ -97,7 +97,7 @@
|
||||
}
|
||||
else return false;
|
||||
$uri = str_replace(array('//', '../'), '/', trim($uri, '/'));
|
||||
if ($uri == "") $uri = "index";
|
||||
if ($uri == "") $uri = "first_page";
|
||||
return $uri;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user