|
248 | 248 | $fileOrFolder = is_dir($docRoot . $fileLoc . "/" . $fileName) ? "folder" : "file";
|
249 | 249 | $fileClass->updateFileManager('move', $fileLoc, $fileName, '', str_replace($iceRoot, "", str_replace("|", "/", $_GET['oldFileName'])), '', $fileOrFolder);
|
250 | 250 | $doNext .= 'tabNum = ICEcoder.openFiles.indexOf(\'' . str_replace("|", "/", $_GET['oldFileName']) . '\') + 1; if (0 < tabNum) {ICEcoder.renameTab(tabNum, \'' . $fileLoc . "/" . $fileName . '\');};';
|
| 251 | + $finalAction = "move"; |
| 252 | + // Run any extra processes |
| 253 | + $extraProcessesClass = new ExtraProcesses($fileLoc, $fileName); |
| 254 | + $doNext = $extraProcessesClass->onFileDirMove($doNext); |
| 255 | + } else { |
| 256 | + $doNext .= "ICEcoder.message('" . $t['Sorry, cannot move'] . "\\\\n" . str_replace("|", "/", $_GET['oldFileName']) . "\\\\n\\\\n" . $t['Maybe public write...'] . "');"; |
| 257 | + $finalAction = "nothing"; |
251 | 258 | }
|
252 | 259 | }
|
253 |
| - $finalAction = "move"; |
254 |
| - // Run any extra processes |
255 |
| - $extraProcessesClass = new ExtraProcesses($fileLoc, $fileName); |
256 |
| - $doNext = $extraProcessesClass->onFileDirMove($doNext); |
257 | 260 | } else {
|
258 | 261 | $doNext .= "ICEcoder.message('" . $t['Sorry, cannot move'] . "\\\\n" . str_replace("|", "/", $_GET['oldFileName']) . "\\\\n\\\\n" . $t['Maybe public write...'] . "');";
|
259 | 262 | $finalAction = "nothing";
|
|
290 | 293 | $extraProcessesClass = new ExtraProcesses($fileLoc, $fileName);
|
291 | 294 | $doNext = $extraProcessesClass->onFileDirRename($doNext);
|
292 | 295 | } else {
|
293 |
| - $doNext .= "ICEcoder.message('".$t['Sorry, cannot rename'] . "\\\\n" . $_GET['oldFileName'] . "\\\\n\\\\n" . $t['Maybe public write...'] . "');"; |
| 296 | + $doNext .= "ICEcoder.message('".$t['Sorry, cannot rename'] . "\\\\n" . str_replace("|", "/", $_GET['oldFileName']) . "\\\\n\\\\n" . $t['does not seem...'] . "');"; |
294 | 297 | $finalAction = "nothing";
|
295 | 298 | }
|
296 | 299 | }
|
297 | 300 | } else {
|
298 |
| - $doNext .= "ICEcoder.message('".$t['Sorry, cannot rename'] . "\\\\n" . $_GET['oldFileName'] . "\\\\n\\\\n" . $t['Maybe public write...'] . "');"; |
| 301 | + $doNext .= "ICEcoder.message('".$t['Sorry, cannot rename'] . "\\\\n" . str_replace("|", "/", $_GET['oldFileName']) . "\\\\n\\\\n" . $t['Maybe public write...'] . "');"; |
299 | 302 | $finalAction = "nothing";
|
300 | 303 | }
|
301 | 304 | $doNext .= 'ICEcoder.serverMessage(); ICEcoder.serverQueue("del", 0);';
|
|
0 commit comments