Merge pull request #251 from BrandonOCasey/first_page_fix

fixed index from always being used rather than first_page
This commit is contained in:
Denis Kisselev 2014-12-11 17:55:49 -08:00
commit 5ec4a86cf6
2 changed files with 11 additions and 8 deletions

View File

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

View File

@ -97,7 +97,7 @@
}
else return false;
$uri = str_replace(array('//', '../'), '/', trim($uri, '/'));
if ($uri == "") $uri = "index";
if ($uri == "") $uri = "first_page";
return $uri;
}