Line 175 in /www/htdocs/w0177d47/yoga-als-therapie.de/www/app/src/AusbildungenOrteTermine/Termin.php
166 167 public function getTranslated($field) 168 { 169 if (i18n::get_locale() == 'en_GB') { 170 if (is_null($this->{$field})) { 171 $myself = $this; 172 173 return FluentState::singleton()->withState(function (FluentState $state) use ($myself, $field) { 174 $state->setLocale('de_DE'); 175 $content = Ausbildung::get()->byID($myself->ID)->{$field}; 176 return ShortcodeParser::get_active()->parse($content); 177 }); 178 } 179 } 180 $content = $this->{$field}; 181 // Do parse the shortcode tags!