X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcredits.php;h=e0e834388fdaf602d4567229a3a9758faa508521;hb=f22fe7118d52251dbd0898279ef078b797885ec4;hp=f8cfb03f3782230e51ded8a973fb7e0455f2233c;hpb=c73d9611983b05cd1207d69c71a157c051b3f2e8;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index f8cfb03f37..e0e834388f 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, - )); +use Friendica\App; + +function credits_content(App $a) { + /* fill the page with credits */ + $f = fopen('util/credits.txt', 'r'); + $names = fread($f, filesize('util/credits.txt')); + $arr = explode("\n", htmlspecialchars($names)); + fclose($f); + $tpl = get_markup_template('credits.tpl'); + return replace_macros($tpl, array( + '$title' => 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, + )); }