aboutsummaryrefslogtreecommitdiffstats
path: root/en/about/constitution/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/about/constitution/index.php')
-rw-r--r--en/about/constitution/index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/en/about/constitution/index.php b/en/about/constitution/index.php
index 42aaae82a..e736f097f 100644
--- a/en/about/constitution/index.php
+++ b/en/about/constitution/index.php
@@ -33,11 +33,12 @@ $dictionary = read_translation_file($locale, array('about/constitution', 'common
</div>
<div class="para">
<?php
- include G_APP_ROOT . '/_nav/lib/php-markdown/markdown.php';
+ include G_APP_ROOT . '/_nav/lib/Parsedown/Parsedown.php';
+ $Parsedown = new Parsedown();
if(in_array($locale, array('en', 'fr', 'sl', 'tr', 'ro', 'de', 'pt-br', 'el', 'id', 'uk', 'ru', 'es', 'eu'))) {
- echo Markdown(file_get_contents('mageia.org_statutes_' . $locale . '.md'));
+ echo $Parsedown->text(file_get_contents('mageia.org_statutes_' . $locale . '.md'));
} else {
- echo Markdown(file_get_contents('mageia.org_statutes_en.md'));
+ echo $Parsedown->text(file_get_contents('mageia.org_statutes_en.md'));
}
?>
</div>