compute preview only if needed
This commit is contained in:
parent
4a14757540
commit
610725ed89
5
note.php
5
note.php
|
@ -159,7 +159,10 @@
|
||||||
<div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
|
<div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
|
||||||
<div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
|
<div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
|
||||||
<?php
|
<?php
|
||||||
echo computepreview($title, $content);
|
if (isset($_GET['preview']))
|
||||||
|
{
|
||||||
|
echo computepreview($title, $content);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue