Skip to content

Commit 77616a1

Browse files
committed
Set repository language from query parameter
1 parent 77d8a8c commit 77616a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

manual/add-note.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
$_POST['redirect'] = $_GET['redirect'];
2020
}
2121
// Assume English if we didn't get a language
22-
if (empty($_POST['repo'])) {
23-
$_POST['repo'] = 'en';
22+
if (empty($_POST['repo']) && isset($_GET['repo'])) {
23+
$_POST['repo'] = $_GET['repo'];
2424
}
2525

2626
// Decide on whether all vars are present for processing

0 commit comments

Comments
 (0)