From 9cec64b376152eefddfef95e998b9ebe78a62834 Mon Sep 17 00:00:00 2001 From: Jabed Bhuiyan Date: Sun, 30 Jun 2024 19:59:16 +0600 Subject: [PATCH 1/3] Update tinyfilemanager.php Now it will show the filename as browser tab title so that user can easily identify which file is opened on which tab. --- tinyfilemanager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index bbac02b2..d876b387 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -3719,6 +3719,7 @@ function fm_show_header() global $lang, $root_url, $sticky_navbar, $favicon_path; $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal'; + $title = isset($_GET['edit']) ? $_GET['edit'] : fm_enc(APP_TITLE); ?> @@ -3730,7 +3731,7 @@ function fm_show_header() '; } ?> - <?php echo fm_enc(APP_TITLE) ?> + <?php echo $title; ?> From f325c8bc5dd0e5bbe9a90e42441073ee27d87adf Mon Sep 17 00:00:00 2001 From: Jabed Bhuiyan Date: Mon, 8 Jul 2024 17:08:49 +0600 Subject: [PATCH 2/3] Update tinyfilemanager.php remove lines 3722 and 3734 and add this directly in 3733 as per the suggestion of @ner00 --- tinyfilemanager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index d876b387..d6db2202 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -3718,8 +3718,7 @@ function fm_show_header() header("Pragma: no-cache"); global $lang, $root_url, $sticky_navbar, $favicon_path; -$isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal'; - $title = isset($_GET['edit']) ? $_GET['edit'] : fm_enc(APP_TITLE); +$isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal'; ?> @@ -3731,7 +3730,7 @@ function fm_show_header() '; } ?> - <?php echo $title; ?> + <?php echo isset($_GET['edit']) ? $_GET['edit'] : fm_enc(APP_TITLE); ?> From be828ad4421f21addc9c80dd293b0e9d3e3dc0a8 Mon Sep 17 00:00:00 2001 From: Jabed Bhuiyan Date: Tue, 1 Oct 2024 19:59:03 +0600 Subject: [PATCH 3/3] Update tinyfilemanager.php extra trailing space removed --- tinyfilemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index d6db2202..83883230 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -3718,7 +3718,7 @@ function fm_show_header() header("Pragma: no-cache"); global $lang, $root_url, $sticky_navbar, $favicon_path; -$isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal'; +$isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal'; ?>