Skip to content

Commit 1c0a919

Browse files
authored
Fix Fatal error on templates management (joomla#45198)
Thanks @joomdonation and testers for speedy turnaround!
1 parent cb73700 commit 1c0a919

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

administrator/components/com_templates/tmpl/template/default_description.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
<h2><?php echo ucfirst($this->template->element); ?></h2>
2828
<?php $client = ApplicationHelper::getClientInfo($this->template->client_id); ?>
2929
<p><?php $this->template->xmldata = TemplatesHelper::parseXMLTemplateFile($client->path, $this->template->element); ?></p>
30-
<p><?php echo Text::_($this->template->xmldata->get('description')); ?></p>
30+
<p><?php echo Text::_($this->template->xmldata->description); ?></p>
3131
</div>

administrator/components/com_templates/tmpl/templates/default.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,21 @@
9898
<?php endif; ?>
9999
</th>
100100
<td class="small d-none d-md-table-cell text-center">
101-
<?php echo $this->escape($item->xmldata->get('version')); ?>
101+
<?php echo $this->escape($item->xmldata->version); ?>
102102
</td>
103103
<td class="small d-none d-md-table-cell text-center">
104-
<?php echo $this->escape($item->xmldata->get('creationDate')); ?>
104+
<?php echo $this->escape($item->xmldata->creationDate); ?>
105105
</td>
106106
<td class="d-none d-md-table-cell text-center">
107-
<?php if ($author = $item->xmldata->get('author')) : ?>
107+
<?php if ($author = $item->xmldata->author) : ?>
108108
<div><?php echo $this->escape($author); ?></div>
109109
<?php else : ?>
110110
&mdash;
111111
<?php endif; ?>
112-
<?php if ($email = $item->xmldata->get('authorEmail')) : ?>
112+
<?php if ($email = $item->xmldata->authorEmail) : ?>
113113
<div><?php echo $this->escape($email); ?></div>
114114
<?php endif; ?>
115-
<?php if ($url = $item->xmldata->get('authorUrl')) : ?>
115+
<?php if ($url = $item->xmldata->authorUrl) : ?>
116116
<div><a href="<?php echo $this->escape($url); ?>"><?php echo $this->escape($url); ?></a></div>
117117
<?php endif; ?>
118118
</td>

0 commit comments

Comments
 (0)