Merge branch 'issue-41'
This commit is contained in:
commit
39d238ee39
@ -174,6 +174,13 @@ By default, Daux.io will create clean url's that do not include index.php. On se
|
||||
"clean_urls": false
|
||||
}
|
||||
|
||||
###Timezone
|
||||
If your server does not have a default timezone set in php.ini, it may return errors when it tries to generate the last modified date/time for docs. To fix these errors, specify a timezone in your config file. Valid options are available in the [PHP Manual](http://php.net/manual/en/timezones.php).
|
||||
|
||||
{
|
||||
"timezone": "America/Los_Angeles"
|
||||
}
|
||||
|
||||
## Running Remotely
|
||||
|
||||
Copy the files from the repo to a web server that can run PHP 5.3 or greater.
|
||||
|
@ -70,6 +70,13 @@ $tree = get_tree("docs", $base_url);
|
||||
$homepage_url = homepage_url($tree);
|
||||
$docs_url = docs_url($tree);
|
||||
|
||||
// If a timezone has been set in the config file, override the default PHP timezone for this application.
|
||||
if(isset($options['timezone']))
|
||||
{
|
||||
date_default_timezone_set($options['timezone']);
|
||||
}
|
||||
|
||||
|
||||
// Redirect to docs, if there is no homepage
|
||||
if ($homepage && $homepage_url !== '/') {
|
||||
header('Location: '.$homepage_url);
|
||||
|
Loading…
Reference in New Issue
Block a user