From e48b1dc107dd8419b98a94d9135808f0cf83f2e5 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 8 Jun 2017 09:21:02 -0700 Subject: [PATCH] Make the name of the 'Home' label configurable --- resources/DirectoryLister.php | 4 ++-- resources/default.config.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index c038008..0d8a135 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -98,7 +98,7 @@ class DirectoryLister { $filename_no_ext = basename($directory); if ($directory == '.') { - $filename_no_ext = 'Home'; + $filename_no_ext = $this->_config['home_label']; } // We deliver a zip file @@ -194,7 +194,7 @@ class DirectoryLister { // Statically set the Home breadcrumb $breadcrumbsArray[] = array( 'link' => $this->_appURL, - 'text' => 'Home' + 'text' => $this->_config['home_label'] ); // Generate breadcrumbs diff --git a/resources/default.config.php b/resources/default.config.php index 4cf51d6..ff325ba 100644 --- a/resources/default.config.php +++ b/resources/default.config.php @@ -8,6 +8,7 @@ return array( 'list_sort_order' => 'natcasesort', 'theme_name' => 'bootstrap', 'external_links_new_window' => true, + 'home_label' => 'Home', // Hidden files 'hidden_files' => array(