We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77616a1 commit 0353407Copy full SHA for 0353407
1 file changed
manual/add-note.php
@@ -11,17 +11,20 @@
11
12
site_header("Add Manual Note", ['css' => 'add-note.css']);
13
14
-// Copy over "sect" and "redirect" from GET to POST
+// Copy over "sect", "redirect" and "repo" from GET to POST
15
if (empty($_POST['sect']) && isset($_GET['sect'])) {
16
$_POST['sect'] = $_GET['sect'];
17
}
18
if (empty($_POST['redirect']) && isset($_GET['redirect'])) {
19
$_POST['redirect'] = $_GET['redirect'];
20
21
-// Assume English if we didn't get a language
22
if (empty($_POST['repo']) && isset($_GET['repo'])) {
23
$_POST['repo'] = $_GET['repo'];
24
+// Assume English if we didn't get a language
25
+if (empty($_POST['repo'])) {
26
+ $_POST['repo'] = 'en';
27
+}
28
29
// Decide on whether all vars are present for processing
30
$process = true;
0 commit comments