X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fcredits.php;h=c53c86b8b9882b3b1913cb2db2ab651a8069d7f1;hb=c06f7ad11e3040e9cb7b2a09682a33cbdd5d5ccd;hp=f8cfb03f3782230e51ded8a973fb7e0455f2233c;hpb=8ec424325375aa923c7d2d78ac8ddcc352f09cff;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index f8cfb03f37..c53c86b8b9 100644 --- a/mod/credits.php +++ b/mod/credits.php @@ -1,20 +1,23 @@ 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 = Renderer::getMarkupTemplate('credits.tpl'); + return Renderer::replaceMacros($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, + ]); }