Skip to content

Commit 2b56ca6

Browse files
committed
Fix Translator
1 parent ade945b commit 2b56ca6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Kdyby/Translation/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ public function getAvailableLocales()
327327
*/
328328
public function getLocale()
329329
{
330-
if ($this->locale === NULL) {
330+
if (parent::getLocale() === NULL) {
331331
$this->setLocale($this->localeResolver->resolve($this));
332332
}
333333

334-
return $this->locale;
334+
return parent::getLocale();
335335
}
336336

337337

0 commit comments

Comments
 (0)