Update to Kirby 3.7.5
This commit is contained in:
@@ -83,7 +83,6 @@ abstract class ModelWithContent extends Model
|
||||
*/
|
||||
public function content(string $languageCode = null)
|
||||
{
|
||||
|
||||
// single language support
|
||||
if ($this->kirby()->multilang() === false) {
|
||||
if (is_a($this->content, 'Kirby\Cms\Content') === true) {
|
||||
@@ -95,7 +94,6 @@ abstract class ModelWithContent extends Model
|
||||
|
||||
// multi language support
|
||||
} else {
|
||||
|
||||
// only fetch from cache for the default language
|
||||
if ($languageCode === null && is_a($this->content, 'Kirby\Cms\Content') === true) {
|
||||
return $this->content;
|
||||
|
||||
Reference in New Issue
Block a user