Renamed 'date_display' config option to 'date_format'

This commit is contained in:
Chris Kankiewicz
2017-06-10 17:56:40 -07:00
parent ff802e6573
commit c0be8a90de
2 changed files with 3 additions and 4 deletions

View File

@@ -600,7 +600,7 @@ class DirectoryLister {
'file_path' => $this->_appURL . $directoryPath,
'url_path' => $this->_appURL . $directoryPath,
'file_size' => '-',
'mod_time' => date($this->_config['date_display'], filemtime($realPath)),
'mod_time' => date($this->_config['date_format'], filemtime($realPath)),
'icon_class' => 'fa-level-up',
'sort' => 0
);
@@ -625,7 +625,7 @@ class DirectoryLister {
'file_path' => $relativePath,
'url_path' => $urlPath,
'file_size' => is_dir($realPath) ? '-' : $this->getFileSize($realPath),
'mod_time' => date($this->_config['date_display'], filemtime($realPath)),
'mod_time' => date($this->_config['date_format'], filemtime($realPath)),
'icon_class' => $iconClass,
'sort' => $sort
);

View File

@@ -8,8 +8,7 @@ return array(
'list_sort_order' => 'natcasesort',
'theme_name' => 'bootstrap',
'external_links_new_window' => true,
// Format of date display, see: http://php.net/manual/en/function.date.php
'date_display' => 'Y-m-d H:i:s',
'date_format' => 'Y-m-d H:i:s', // See: http://php.net/manual/en/function.date.php
// Hidden files
'hidden_files' => array(