X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcredits.php;h=e0e834388fdaf602d4567229a3a9758faa508521;hb=008c97c570ea62749a3f486b42c424365863d627;hp=84e32b83d578133c70c6be16b7f473fd3f8d523c;hpb=17858bd8443e0384602b71478fd0b1a00cfeafb1;p=friendica.git diff --git a/mod/credits.php b/mod/credits.php index 84e32b83d5..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, + )); }