Fixed a bug where index was always used rather than the actual first_page

This commit is contained in:
Brandon O'Casey 2014-12-11 11:26:33 -05:00
parent c34ff07ed0
commit 6fc52ae10e
2 changed files with 11 additions and 8 deletions

View File

@ -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']) {

View File

@ -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;
} }