X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcredits.php;h=56b7cd6618cd90353789c2c9f5b87c3f44a8a4b7;hb=cb635fb3cbb499ed6bf2b995a5ec1d6e9a38773a;hp=f5c34b6105037f094f0098701c4b1a876252853f;hpb=5eaa5951a1b19b985017b5db20f3b1abf464a1ef;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index f5c34b6105..56b7cd6618 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('CREDITS.txt'); + $names = explode("\n", $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, + ]); }