Browse Source

rename environment attribute from time to date

main
yggverse 7 months ago
parent
commit
1ec4b61970
  1. 2
      README.md
  2. 2
      src/Controller/Nex.php

2
README.md

@ -75,7 +75,7 @@ Provide arguments in `key=value` format, separated by space
* `port` - default value depends of server `type` selected, for example `1900` for `nex` or `1965` for `gemini` * `port` - default value depends of server `type` selected, for example `1900` for `nex` or `1965` for `gemini`
* `file` - index **file name** that server try to open on directory path requested, disabled by default * `file` - index **file name** that server try to open on directory path requested, disabled by default
* `list` - show content listing in the requested directory (when index `file` not found), enabled by default * `list` - show content listing in the requested directory (when index `file` not found), enabled by default
* `time` - show file modification time as the alt text in directory listing (useful for gemfeed), disabled by default * `date` - show file modification date as the alt text in directory listing (useful for gemfeed), disabled by default
* `fail` - **absolute path** to the failure template (e.g. `/path/to/error.gmi`), disabled by default * `fail` - **absolute path** to the failure template (e.g. `/path/to/error.gmi`), disabled by default
* `dump` - `enable` or `disable` server debug feature, enabled by default * `dump` - `enable` or `disable` server debug feature, enabled by default

2
src/Controller/Nex.php

@ -135,7 +135,7 @@ class Nex implements MessageComponentInterface
]; ];
// Append modification time on enabled // Append modification time on enabled
if ($item['time'] && $this->_environment->get('time')) if ($item['time'] && $this->_environment->get('date'))
{ {
$link[] = date( $link[] = date(
'Y-m-d', // gemfeed format 'Y-m-d', // gemfeed format

Loading…
Cancel
Save