compute preview only if needed

This commit is contained in:
quenousimporte 2024-10-16 13:58:41 +02:00
parent 4a14757540
commit 610725ed89
1 changed files with 4 additions and 1 deletions

View File

@ -159,7 +159,10 @@
<div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
<div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
<?php
echo computepreview($title, $content);
if (isset($_GET['preview']))
{
echo computepreview($title, $content);
}
?>
</div>
</body>