From bc9e9c04c97cfe594205845c606552ddc0e9f901 Mon Sep 17 00:00:00 2001 From: kozi Date: Thu, 25 Sep 2014 09:39:59 +0200 Subject: [PATCH] Changed metaData to metadata --- contao/classes/MetafieldsHelper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contao/classes/MetafieldsHelper.php b/contao/classes/MetafieldsHelper.php index 1ffd392..2d4f430 100644 --- a/contao/classes/MetafieldsHelper.php +++ b/contao/classes/MetafieldsHelper.php @@ -69,14 +69,14 @@ public function injectMetaData($objRow, $strBuffer, $objElement) { } if ($objRow->type === 'gallery') { - $objElement->__set('metaData', $this->getMultiMetaData($objRow->multiSRC)); + $objElement->__set('metadata', $this->getMultiMetaData($objRow->multiSRC)); $strBuffer = $objElement->generate(); } if ($objRow->type === 'image') { $objFile = \FilesModel::findByUuid($objRow->singleSRC); $objElement->__set('singleSRC', $objFile->uuid); - $objElement->__set('metaData', $this->getMetaData($objFile->meta, $objPage->language)); + $objElement->__set('metadata', $this->getMetaData($objFile->meta, $objPage->language)); $strBuffer = $objElement->generate(); } @@ -134,11 +134,11 @@ private function getMultiMetaData($multiSRC) { return $images; } - public static function embedData(&$body, $metaData) { + public static function embedData(&$body, $metadata) { foreach($body as $class => $row) { foreach($row as $key => $col) { - if (array_key_exists($col->singleSRC, $metaData) && sizeof($metaData[$col->singleSRC]) > 0) { - $body[$class][$key]->metaData = $metaData[$col->singleSRC]; + if (array_key_exists($col->singleSRC, $metadata) && sizeof($metadata[$col->singleSRC]) > 0) { + $body[$class][$key]->metadata = $metadata[$col->singleSRC]; } } }