mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Get filemtime after saving
We weren't getting the new filemtime after saving and using the $filemtime var value prior to the save. Needs to be reestablished prior to setting the array value.
This commit is contained in:
@@ -254,6 +254,7 @@ if ($_GET['action']=="save") {
|
||||
fwrite($fh, $_POST['contents']);
|
||||
fclose($fh);
|
||||
clearstatcache();
|
||||
$filemtime = $serverType=="Linux" ? filemtime($file) : "1000000";
|
||||
echo '<script>top.ICEcoder.openFileMDTs[top.ICEcoder.selectedTab-1]="'.$filemtime.'";</script>';
|
||||
// Reload file manager & rename tab if it was a new file
|
||||
if (isset($_POST['newFileName']) && $_POST['newFileName']!="") {
|
||||
|
||||
Reference in New Issue
Block a user