X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcredits.php;h=880b4b34c4cdbaab87a18a9c1383340ef51d32ab;hb=22816c49a1972fff2e201dd66ac59b80624ee8aa;hp=f5c34b6105037f094f0098701c4b1a876252853f;hpb=dbf7c7d9ad697f7951f102c8372e7d65c167de96;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index f5c34b6105..880b4b34c4 100644 --- a/mod/credits.php +++ b/mod/credits.php @@ -1,20 +1,22 @@ t('Credits'), - '$thanks' => t('Friendica is a community project, that would not be possible without the help of many people. Here is a list of those who have contributed to the code or the translation of Friendica. Thank you all!'), - '$names' => $arr, - )); +function credits_content() +{ + /* fill the page with credits */ + $credits_string = file_get_contents('util/credits.txt'); + $names = explode("\n", htmlspecialchars($credits_string)); + $tpl = get_markup_template('credits.tpl'); + return replace_macros($tpl, [ + '$title' => L10n::t('Credits'), + '$thanks' => L10n::t('Friendica is a community project, that would not be possible without the help of many people. Here is a list of those who have contributed to the code or the translation of Friendica. Thank you all!'), + '$names' => $names, + ]); }