summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsciacca2017-06-16 07:11:34 (GMT)
committerjoseph.olstad2017-06-16 07:11:34 (GMT)
commit0174509cdf31abcd38503b1cfe1ffa93b43ccd88 (patch)
treebd12d88175b3c03d9b4a2bad4321006294184a8b
parent8af4f1f2b4fb0d0418754df4d1044dd6648bdde3 (diff)
Issue #2886610 by nsciacca: Typo for $host->$language7.x-2.8
-rw-r--r--includes/media.fields.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/media.fields.inc b/includes/media.fields.inc
index 3204812..99be107 100644
--- a/includes/media.fields.inc
+++ b/includes/media.fields.inc
@@ -140,7 +140,7 @@ function media_field_widget_form(&$form, &$form_state, $field, $instance, $langc
}
else if ($element['#entity_type'] == 'paragraphs_item' && !empty($form['#entity'])) {
$host = $element['#entity']->hostEntity();
- if (isset($host->$language)) {
+ if (isset($host->language)) {
$element['#media_parent_entity_form_langcode'] = $host->language;
$element['#media_parent_entity_source_langcode'] = $host->language;
}