Show PHP < 8 as deprecated

This commit is contained in:
phl0
2024-05-08 13:23:59 +02:00
parent 9e33324a66
commit 43dce0211f

View File

@@ -66,7 +66,15 @@
<tr>
<td>PHP Version</td>
<td><?php echo phpversion(); ?></td>
<td>
<?php
if (version_compare(phpversion(), '8', '<')) {
echo "<span class=\"badge text-bg-warning\">".phpversion()."</span>";
} else {
echo "<span class=\"badge text-bg-success\">".phpversion()."</span>";
}
?>
</td>
</tr>
<tr>
@@ -587,4 +595,4 @@
<?php } else { ?>
var local_branch = 'n/a';
<?php } ?>
</script>
</script>