aboutsummaryrefslogtreecommitdiffstats
path: root/en/about/constitution/index.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-29 16:50:22 +0100
committerfilip <filip.komar@gmail.com>2020-10-29 16:50:22 +0100
commit62ae66ef9e83ba7678087f80cb6b7018badd8dd4 (patch)
treea6f73bb14ac6dca1032a906e1ef1b47d48a7a103 /en/about/constitution/index.php
parent033e23e3ffee1fe6b69051cb6430660e3bc3b7ba (diff)
downloadwww-62ae66ef9e83ba7678087f80cb6b7018badd8dd4.tar
www-62ae66ef9e83ba7678087f80cb6b7018badd8dd4.tar.gz
www-62ae66ef9e83ba7678087f80cb6b7018badd8dd4.tar.bz2
www-62ae66ef9e83ba7678087f80cb6b7018badd8dd4.tar.xz
www-62ae66ef9e83ba7678087f80cb6b7018badd8dd4.zip
switch constitution page to a new markup library Parsedown instead of obsolete php-markdown
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>