Skip to content

Commit 4788a14

Browse files
committed
Restore the 'contributors' function, which is in use by the manual builds
1 parent 6eba7eb commit 4788a14

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

include/shared-manual.inc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,28 @@ CONTRIBUTE;
254254
]);
255255
}
256256

257+
function contributors($setup) {
258+
if (!isset($_GET["contributors"])
259+
|| !isset($setup["history"]["contributors"])
260+
|| count($setup["history"]["contributors"]) < 1) {
261+
return;
262+
}
263+
264+
$contributorList = "<li>" . implode("</li><li>", $setup["history"]["contributors"]) . "</li>";
265+
266+
echo <<<CONTRIBUTORS
267+
<div class="book">
268+
<h1 class="title">Output Buffering Control</h1>
269+
The following have authored commits that contributed to this page:
270+
<ul>
271+
$contributorList
272+
</ul>
273+
</div>
274+
CONTRIBUTORS;
275+
manual_footer($setup);
276+
exit;
277+
}
278+
257279
function autogen(string $text, string $lang) {
258280
static $translations = [];
259281

0 commit comments

Comments
 (0)