Skip to content

Commit 87f4d23

Browse files
committed
Wrap the release manager's GPG keys into an auto-loadable helper.
1 parent e4da31b commit 87f4d23

4 files changed

Lines changed: 290 additions & 255 deletions

File tree

downloads.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
3+
use phpweb\Releases\RMs\ReleaseManagers;
4+
25
$_SERVER['BASE_PAGE'] = 'downloads.php';
36
include_once __DIR__ . '/include/prepend.inc';
4-
include_once __DIR__ . '/include/gpg-keys.inc';
57
include_once __DIR__ . '/include/version.inc';
68

79
// Try to make this page non-cached
@@ -200,7 +202,7 @@ function option(string $value, string $desc, $attributes = []): string
200202
to verify the tags:
201203
</p>
202204

203-
<?php gpg_key_show_keys(true /* activeOnly */); ?>
205+
<?php ReleaseManagers::showKeys(activeOnly: true); ?>
204206

205207
<p>
206208
<a href="gpg-keys.php">

gpg-keys.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
3+
use phpweb\Releases\RMs\ReleaseManagers;
4+
25
$_SERVER['BASE_PAGE'] = 'gpg-keys.php';
36
include_once __DIR__ . '/include/prepend.inc';
4-
include_once __DIR__ . '/include/gpg-keys.inc';
57

68
site_header('GPG Keys');
79
?>
@@ -14,7 +16,7 @@
1416
verify these tags:
1517
</p>
1618

17-
<?php gpg_key_show_keys(false /* activeOnly */); ?>
19+
<?php ReleaseManagers::showKeys(activeOnly: false); ?>
1820

1921
<h3 id="keyring" class="content-header">Keyring</h3>
2022

include/gpg-keys.inc

Lines changed: 0 additions & 251 deletions
This file was deleted.

0 commit comments

Comments
 (0)