Merge pull request #809 from jurriaan/fix-nocache-in-history

Fix nocache param in history.php
This commit is contained in:
ehpersonal38
2023-03-29 15:13:25 -04:00
committed by GitHub
+4 -2
View File
@@ -148,14 +148,16 @@ function submitID() {
</table> </table>
<?php // <br><button type="button" onclick="showDialog()">Export as CSV for eBird</button><br><br> ?> <?php // <br><button type="button" onclick="showDialog()">Export as CSV for eBird</button><br><br> ?>
<?php <?php
$time = time();
if (file_exists('./Charts/'.$chart)) { if (file_exists('./Charts/'.$chart)) {
echo "<img src=\"/Charts/$chart?nocache=time()\" >"; echo "<img src=\"/Charts/$chart?nocache=$time\" >";
} else { } else {
echo "<p>No Charts for $theDate</p>"; echo "<p>No Charts for $theDate</p>";
} }
echo "<hr>"; echo "<hr>";
if (file_exists('./Charts/'.$chart2)) { if (file_exists('./Charts/'.$chart2)) {
echo "<img src=\"/Charts/$chart2?nocache=time()\">"; echo "<img src=\"/Charts/$chart2?nocache=$time\">";
} else { } else {
echo "<p>No Charts For $theDate</p>"; echo "<p>No Charts For $theDate</p>";
}?> }?>