Skip to content

Commit

Permalink
Remove useless repo parameter (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Oct 17, 2024
1 parent 9ee511f commit 67fa1d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/shared-manual.inc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function manual_notes($notes):void {
$sorter = new Sorter();
$sorter->sort($notes);

$repo = strtolower($LANG);
$addNote = autogen('add_a_note', $LANG);
// Link target to add a note to the current manual page,
// and it's extended form with a [+] image
Expand Down Expand Up @@ -420,7 +421,7 @@ function manual_footer($setup): void {
</div>
CONTRIBUTE;

manual_notes($USERNOTES, $repo);
manual_notes($USERNOTES);
site_footer([
'related_menu' => $__RELATED['toc'],
'related_menu_deprecated' => $__RELATED['toc_deprecated'],
Expand Down Expand Up @@ -475,6 +476,7 @@ function autogen(string $text, string $lang) {
static $translations = [];

$lang = ($lang === "") ? "en" : $lang;
$lang = strtolower($lang);
if (isset($translations[$lang])) {
if (isset($translations[$lang][$text]) && $translations[$lang][$text] !== "") {
return $translations[$lang][$text];
Expand Down
File renamed without changes.

0 comments on commit 67fa1d0

Please sign in to comment.