From 1e5232d44133d885a9815a27f5b59f181dfdf60f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 2 Feb 2015 17:57:47 +0000 Subject: [PATCH] Special handling for path when favorite is set via GET parameter --- filemanager/inc/class.filemanager_ui.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index a8ff57e997..6eba2fe0bc 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -304,6 +304,11 @@ class filemanager_ui if (isset($_GET['msg'])) $msg = $_GET['msg']; + // Blank favorite set via GET needs special handling for path + if (isset($_GET['favorite']) && $_GET['favorite'] == 'blank') + { + $content['nm']['path'] = static::get_home_dir(); + } // switch to projectmanager folders if (isset($_GET['pm_id'])) {