From c0be8a90de7bcf9430ba3080d168e51147d46a80 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Sat, 10 Jun 2017 17:56:40 -0700 Subject: [PATCH] Renamed 'date_display' config option to 'date_format' --- resources/DirectoryLister.php | 4 ++-- resources/default.config.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index 14e679f4a..3cd1b5bef 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -600,7 +600,7 @@ protected function _readDirectory($directory, $sort = 'natcase') { '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 @@ protected function _readDirectory($directory, $sort = 'natcase') { '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 ); diff --git a/resources/default.config.php b/resources/default.config.php index 52626d269..295bad4d3 100644 --- a/resources/default.config.php +++ b/resources/default.config.php @@ -8,8 +8,7 @@ '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(