summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-09 19:25:55 +0100
committermsquare <msquare@notrademark.de>2016-11-09 19:25:55 +0100
commitdfc9e209a5328edd2aab7abc3d5562db3d7ade32 (patch)
tree84198741140ef0160ecf53b56051d1d7c618aad9
parentaf9328f5585a8ab38ae4044e4b8c11d874b6e99c (diff)
fix parsedown
-rw-r--r--includes/view/AngelTypes_view.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php
index db21efda..53396a05 100644
--- a/includes/view/AngelTypes_view.php
+++ b/includes/view/AngelTypes_view.php
@@ -264,6 +264,8 @@ function AngelTypes_list_view($angeltypes, $admin_angeltypes) {
* Renders the about info for an angeltype.
*/
function AngelTypes_about_view_angeltype($angeltype) {
+ $parsedown = new Parsedown();
+
$html = '<h2>' . $angeltype['name'] . '</h2>';
if (isset($angeltype['user_angeltype_id'])) {
@@ -303,7 +305,6 @@ function AngelTypes_about_view($angeltypes, $user_logged_in) {
'<p>' . _("Here is the list of teams and their tasks. If you have questions, read the FAQ.") . '</p>',
'<hr />'
];
- $parsedown = new Parsedown();
foreach ($angeltypes as $angeltype) {
$content[] = AngelTypes_about_view_angeltype($angeltype);
}