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:
Matt Pass
2013-03-04 12:56:58 +00:00
parent c0f0595ad7
commit 000fda848b

View File

@@ -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']!="") {