fix $lang shadowing before Atom feed generation

This commit is contained in:
Miraty 2024-03-04 09:19:05 +01:00
parent eacc4b7785
commit 6cdb1b47e1

View file

@ -226,11 +226,11 @@ foreach ($pages as $node) {
<aside>
<nav>
<ul>
<?php foreach ($page_langs as $lang) { ?>
<li lang="<?= $lang ?>">
<?php foreach ($page_langs as $page_lang) { ?>
<li lang="<?= $page_lang ?>">
<small>
<a href="<?= $page_names[$src] ?>.<?= $lang ?>" rel="alternate" hreflang="<?= $lang ?>">
<?= $lang_txt[$lang] ?? $lang ?>
<a href="<?= $page_names[$src] ?>.<?= $page_lang ?>" rel="alternate" hreflang="<?= $page_lang ?>">
<?= $lang_txt[$page_lang] ?? $page_lang ?>
</a>
</small>
</li>