mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 08:40:42 +02:00
Display READMEs by default
This commit is contained in:
@@ -6,7 +6,7 @@ REVERSE_SORT=false
|
||||
HIDE_APP_FILES=true
|
||||
HIDE_VCS_FILES=true
|
||||
|
||||
DISPLAY_READMES=false
|
||||
DISPLAY_READMES=true
|
||||
|
||||
DATE_FORMAT="Y-m-d H:i:s"
|
||||
|
||||
|
@@ -108,7 +108,7 @@ class DirectoryController
|
||||
*/
|
||||
protected function readme($path): ?SplFileInfo
|
||||
{
|
||||
if (! $this->config->get('app.display_readmes', false)) {
|
||||
if (! $this->config->get('app.display_readmes', true)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ return [
|
||||
/**
|
||||
* Parse and render README files on the page.
|
||||
*
|
||||
* Default value: false
|
||||
* Default value: true
|
||||
*/
|
||||
'display_readmes' => Helpers::env('DISPLAY_READMES'),
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class TestCase extends PHPUnitTestCase
|
||||
'hidden_files' => [],
|
||||
'hide_app_files' => true,
|
||||
'hide_vcs_files' => false,
|
||||
'display_readmes' => false,
|
||||
'display_readmes' => true,
|
||||
'max_hash_size' => 1000000000,
|
||||
],
|
||||
'view' => [
|
||||
|
Reference in New Issue
Block a user