From 5f13871385f75ffadd8a2337026e5b93392861df Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 29 Dec 2020 16:44:38 +0100 Subject: [PATCH 1/2] Replace "Edit" with "Submit a Pull Request" link Since the documentation has moved from SVN to Git, we replace the "Edit" links in the manual with links to the respective GH mirrors. --- include/shared-manual.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shared-manual.inc b/include/shared-manual.inc index d534b0384d..cb1eb7dc72 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -447,7 +447,7 @@ function manual_setup($setup) { {$language_chooser($config['lang'], $config['thispage'])}
- Edit + Submit a Pull Request Report a Bug
From 4177e885f66ed6ccc23cf420e3d873651c4d9692 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 30 Dec 2020 15:21:14 +0100 Subject: [PATCH 2/2] Link to repo, and cater to pt_BR etc. --- include/shared-manual.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/shared-manual.inc b/include/shared-manual.inc index cb1eb7dc72..18922dfb1d 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -441,13 +441,14 @@ function manual_setup($setup) { $id = substr($setup['this'][0], 0, -4); $language_chooser = 'manual_language_chooser'; + $repo = str_replace('_', '-', strtolower($config['lang'])); // pt_BR etc. echo <<
{$language_chooser($config['lang'], $config['thispage'])}