compute preview only if needed
This commit is contained in:
parent
4a14757540
commit
610725ed89
3
note.php
3
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
|
||||||
|
if (isset($_GET['preview']))
|
||||||
|
{
|
||||||
echo computepreview($title, $content);
|
echo computepreview($title, $content);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue