Merge pull request #251 from BrandonOCasey/first_page_fix
fixed index from always being used rather than first_page
This commit is contained in:
commit
5ec4a86cf6
@ -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