From 6e7d9ff5f2f6e9251d61731fddcefee5eeda8bee Mon Sep 17 00:00:00 2001 From: IjorTengab Date: Sat, 18 Feb 2023 09:24:11 +0700 Subject: [PATCH] Make home button configurable. --- tinyfilemanager.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index ed21d9a..a9456d8 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -70,6 +70,9 @@ $root_url = ''; // $_SERVER['HTTP_HOST'].'/folder' $http_host = $_SERVER['HTTP_HOST']; +// Home URL. Link for Home Button. +$home_url = '?p='; + // input encoding for iconv $iconv_input_encoding = 'UTF-8'; @@ -3434,7 +3437,7 @@ class FM_Zipper_Tar */ function fm_show_nav_path($path) { - global $lang, $sticky_navbar, $editFile; + global $lang, $sticky_navbar, $editFile, $home_url; $isStickyNavBar = $sticky_navbar ? 'fixed-top' : ''; $getTheme = fm_get_theme(); $getTheme .= " navbar-light"; @@ -3453,7 +3456,7 @@ function fm_show_nav_path($path) "; + $root_url = ""; $sep = ' / '; if ($path != '') { $exploded = explode('/', $path);