From f921af4199ad85d0a8ccd71aec44dabc73d10286 Mon Sep 17 00:00:00 2001 From: Sebastiaan Kloos Date: Thu, 6 Jun 2019 15:05:38 +0200 Subject: [PATCH] Fix menus not being displayed with database templates (#4362) Credit to @SebastiaanKloos. --- modules/cms/classes/Meta.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cms/classes/Meta.php b/modules/cms/classes/Meta.php index bfebf016d..e2fec147d 100644 --- a/modules/cms/classes/Meta.php +++ b/modules/cms/classes/Meta.php @@ -42,7 +42,7 @@ class Meta extends CmsObject $this->content = $this->renderContent(); }); $this->bindEvent('model.afterFetch', function () { - $this->attributes = array_merge($this->parseContent(), $this->attributes); + $this->attributes = array_merge($this->attributes, $this->parseContent()); }); } @@ -82,4 +82,4 @@ class Meta extends CmsObject { return $this->renderContent(); } -} \ No newline at end of file +}