Commit 1b3c5f46 authored by Corentin Bettiol's avatar Corentin Bettiol 💻
Browse files

MAINT: retrocompatibility for older posts

parent 544e8973
......@@ -46,10 +46,10 @@
<?php
// si on est sur un post de blog (et pas sur une page listant des posts de blog) on affiche l'article
if(isset($_GET['action']) && $_GET['action'] == 'blog' && !isset($_GET['page']))
echo $parsed->text($blogpost['content']);
echo $parsed->text(html_entity_decode($blogpost['content']));
// sinon si on est sur l'accueil ou sur une page listant des posts de blog on affiche le résumé
else
echo $parsed->text($blogpost['shortContent']);
echo $parsed->text(html_entity_decode($blogpost['shortContent']));
?>
</section>
</article>
......@@ -26,6 +26,6 @@
</p>
</section>
<?php
echo $parsed->text($project['content']);
echo $parsed->text(html_entity_decode($project['content']));
?>
</article>
......@@ -28,7 +28,7 @@
</p>
</section>
<p>
<?php echo $parsed->text($project['shortContent']); ?>
<?php echo $parsed->text(html_entity_decode($project['shortContent'])); ?>
</p>
<p>
<span class="postInfos"><a href="/project/<?php echo $project['slug']; ?>">Lire la suite.</a></span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment