small fixes

This commit is contained in:
2022-01-31 20:56:27 +01:00
parent a4b67569a4
commit bc4f849ff3
7 changed files with 115 additions and 110 deletions

View File

@@ -49,7 +49,7 @@ abstract class BaseFrontPresenter extends UnsecuredPresenter
foreach ($trs as $t) {
$lang1 = $t->getLangName1();
$lang2 = $t->getLangName2();
$lang = mb_substr($lang1, 0, -1);
$lang .= "o-" . $lang2;
$slug = Strings::webalize($lang);
@@ -59,6 +59,7 @@ abstract class BaseFrontPresenter extends UnsecuredPresenter
$translations[$t->id]["t"] = $t;
$slugs[$slug] = $t;
}
$this->slug= $translations[1]["slug"];
$this->translations = $translations;
$this->dictionaries = $drs;
$this->drsSelect = $select;