X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcredits.php;h=cfcc30b3e2e3beb7f7879b70803109ca665e9456;hb=b42760b0e6b243a9ab6306a1f1440e1a2effb74e;hp=f8cfb03f3782230e51ded8a973fb7e0455f2233c;hpb=9ab5bfb5074ddba22777c3b043bb539a473288a5;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index f8cfb03f37..cfcc30b3e2 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", 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, + ]); }