Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/src/Revolution/modElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ public function get($k, $format = null, $formatTemplate = null)
}
$this->xpdo->lexicon->load($property['lexicon']);
}
$property['desc_trans'] = $this->xpdo->lexicon($property['desc']);
$desc = $property['desc'] ?? $property['description'] ?? '';
Comment thread
Ibochkarev marked this conversation as resolved.
Outdated
$property['desc_trans'] = $desc !== '' ? $this->xpdo->lexicon($desc) : '';
$property['area'] = !empty($property['area']) ? $property['area'] : '';
$property['area_trans'] = !empty($property['area']) ? $this->xpdo->lexicon($property['area']) : '';

Expand Down
3 changes: 2 additions & 1 deletion core/src/Revolution/modPropertySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public function get($k, $format = null, $formatTemplate = null)
}
$this->xpdo->lexicon->load($property['lexicon']);
}
$property['desc_trans'] = $this->xpdo->lexicon($property['desc']);
$desc = $property['desc'] ?? $property['description'] ?? '';
Comment thread
Ibochkarev marked this conversation as resolved.
Outdated
$property['desc_trans'] = $desc !== '' ? $this->xpdo->lexicon($desc) : '';
$property['area'] = !empty($property['area']) ? $property['area'] : '';

if (!empty($property['options'])) {
Expand Down
Loading