Skip to content

Commit 2d4419c

Browse files
authored
Set repository language from query parameter (#1257)
1 parent 77d8a8c commit 2d4419c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manual/add-note.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
site_header("Add Manual Note", ['css' => 'add-note.css']);
1313

14-
// Copy over "sect" and "redirect" from GET to POST
14+
// Copy over "sect", "redirect" and "repo" from GET to POST
1515
if (empty($_POST['sect']) && isset($_GET['sect'])) {
1616
$_POST['sect'] = $_GET['sect'];
1717
}
1818
if (empty($_POST['redirect']) && isset($_GET['redirect'])) {
1919
$_POST['redirect'] = $_GET['redirect'];
2020
}
21+
if (empty($_POST['repo']) && isset($_GET['repo'])) {
22+
$_POST['repo'] = $_GET['repo'];
23+
}
2124
// Assume English if we didn't get a language
2225
if (empty($_POST['repo'])) {
2326
$_POST['repo'] = 'en';

0 commit comments

Comments
 (0)