From 94512c31dd7eace0dcdfe78b967be565def5f3e9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 7 Nov 2014 21:02:43 +0000 Subject: [PATCH] Don't clear selectedFiles on chmod This is unnecessary and we need this to also have a target to replace perms on --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 30a41ac..69294a7 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -297,7 +297,7 @@ if ($_GET['action']=="perms") { if (!$demoMode && is_writable($file)) { chmod($file,octdec(numClean($_GET['perms']))); // Reload file manager - echo 'top.ICEcoder.selectedFiles=[];top.ICEcoder.updateFileManagerList(\'chmod\',\''.$fileLoc.'\',\''.$fileName.'\',\''.numClean($_GET['perms']).'\');'; + echo 'top.ICEcoder.updateFileManagerList(\'chmod\',\''.$fileLoc.'\',\''.$fileName.'\',\''.numClean($_GET['perms']).'\');'; echo 'action="perms";'; // Run our custom processes include_once("../processes/on-file-dir-perms.php");