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 = DauxHelper::get_request();
|
||||||
$request = urldecode($request);
|
$request = urldecode($request);
|
||||||
$request_type = isset($query['method']) ? $query['method'] : '';
|
$request_type = isset($query['method']) ? $query['method'] : '';
|
||||||
|
if($request == 'first_page') {
|
||||||
|
$request = $this->tree->first_page->uri;
|
||||||
|
}
|
||||||
switch ($request_type) {
|
switch ($request_type) {
|
||||||
case 'DauxEdit':
|
case 'DauxEdit':
|
||||||
if ($this->options['file_editor']) {
|
if ($this->options['file_editor']) {
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
}
|
}
|
||||||
else return false;
|
else return false;
|
||||||
$uri = str_replace(array('//', '../'), '/', trim($uri, '/'));
|
$uri = str_replace(array('//', '../'), '/', trim($uri, '/'));
|
||||||
if ($uri == "") $uri = "index";
|
if ($uri == "") $uri = "first_page";
|
||||||
return $uri;
|
return $uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user