Skip to content

Commit

Permalink
Replace "Edit" with "Submit a Pull Request" link
Browse files Browse the repository at this point in the history
Since the documentation has moved from SVN to Git, we replace the
"Edit" links in the manual with links to the respective GH mirrors.

Closes GH-389.
  • Loading branch information
cmb69 committed Dec 30, 2020
1 parent 28820a8 commit 019f279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/shared-manual.inc
Expand Up @@ -441,13 +441,14 @@ function manual_setup($setup) {

$id = substr($setup['this'][0], 0, -4);
$language_chooser = 'manual_language_chooser';
$repo = strtolower($config['lang']); // pt_BR etc.
echo <<<PAGE_TOOLS
<div class="page-tools">
<div class="change-language">
{$language_chooser($config['lang'], $config['thispage'])}
</div>
<div class="edit-bug">
<a href="https://edit.php.net/?project=PHP&amp;perm={$config['lang']}/{$config['thispage']}">Edit</a>
<a href="https://github.com/php/doc-{$repo}">Submit a Pull Request</a>
<a href="https://bugs.php.net/report.php?bug_type=Documentation+problem&amp;manpage=$id">Report a Bug</a>
</div>
</div>
Expand Down

0 comments on commit 019f279

Please sign in to comment.