1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Restore the 'contributors' function, which is in use by the manual builds

This commit is contained in:
Derick Rethans
2026-01-13 13:59:15 +00:00
parent 6eba7eba26
commit 4788a141ec

View File

@@ -254,6 +254,28 @@ CONTRIBUTE;
]);
}
function contributors($setup) {
if (!isset($_GET["contributors"])
|| !isset($setup["history"]["contributors"])
|| count($setup["history"]["contributors"]) < 1) {
return;
}
$contributorList = "<li>" . implode("</li><li>", $setup["history"]["contributors"]) . "</li>";
echo <<<CONTRIBUTORS
<div class="book">
<h1 class="title">Output Buffering Control</h1>
The following have authored commits that contributed to this page:
<ul>
$contributorList
</ul>
</div>
CONTRIBUTORS;
manual_footer($setup);
exit;
}
function autogen(string $text, string $lang) {
static $translations = [];