Skip to content

Commit c3ed7d1

Browse files
authored
Merge branch '6.0-dev' into upmerges/2025-03-26
2 parents 4d0b60d + 886c4dc commit c3ed7d1

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

administrator/components/com_installer/src/View/Updatesite/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function display($tpl = null): void
7070

7171
// Remove the extra_query field if it's a free download extension
7272
$dlidSupportingSites = InstallerHelper::getDownloadKeySupportedSites(false);
73-
$update_site_id = $this->item->get('update_site_id');
73+
$update_site_id = $this->item->update_site_id;
7474

7575
if (!\in_array($update_site_id, $dlidSupportingSites)) {
7676
$this->form->removeField('extra_query');

administrator/components/com_messages/src/Model/MessageModel.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,12 @@ public function getItem($pk = null)
163163
return false;
164164
}
165165

166-
$this->item->set('user_id_to', $message->user_id_from);
166+
$this->item->user_id_to = $message->user_id_from;
167+
167168
$re = Text::_('COM_MESSAGES_RE');
168169

169170
if (stripos($message->subject, $re) !== 0) {
170-
$this->item->set('subject', $re . ' ' . $message->subject);
171+
$this->item->subject = $re . ' ' . $message->subject;
171172
}
172173
}
173174
} elseif ($this->item->user_id_to != $this->getCurrentUser()->id) {
@@ -188,7 +189,7 @@ public function getItem($pk = null)
188189

189190
// Get the user name for an existing message.
190191
if ($this->item->user_id_from && $fromUser = new User($this->item->user_id_from)) {
191-
$this->item->set('from_user_name', $fromUser->name);
192+
$this->item->from_user_name = $fromUser->name;
192193
}
193194
}
194195

administrator/components/com_messages/tmpl/message/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<div class="card-body">
3434
<dl class="mb-0">
3535
<dt><?php echo Text::_('COM_MESSAGES_FIELD_USER_ID_FROM_LABEL'); ?></dt>
36-
<dd><?php echo $this->item->get('from_user_name'); ?></dd>
36+
<dd><?php echo $this->item->from_user_name; ?></dd>
3737

3838
<dt><?php echo Text::_('COM_MESSAGES_FIELD_DATE_TIME_LABEL'); ?></dt>
3939
<dd><?php echo HTMLHelper::_('date', $this->item->date_time, Text::_('DATE_FORMAT_LC2')); ?></dd>

administrator/components/com_modules/src/Controller/ModuleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function save($key = null, $urlVar = null)
232232
$model = $this->getModel();
233233
$data = $this->input->post->get('jform', [], 'array');
234234
$item = $model->getItem($this->input->get('id'));
235-
$properties = $item->getProperties();
235+
$properties = get_object_vars($item);
236236

237237
if (isset($data['params'])) {
238238
unset($properties['params']);

administrator/components/com_templates/src/Controller/StyleController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public function save($key = null, $urlVar = null)
5858
$item = $model->getItem($this->app->getTemplate(true)->id);
5959

6060
// Setting received params
61-
$item->set('params', $data);
61+
$item->params = $data;
6262

63-
$data = $item->getProperties();
63+
$data = get_object_vars($item);
6464
unset($data['xml']);
6565

6666
$key = $table->getKeyName();

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>

components/com_config/src/View/Modules/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function display($tpl = null)
6363
// @todo Move and clean up
6464
$module = (new \Joomla\Component\Modules\Administrator\Model\ModuleModel())->getItem(Factory::getApplication()->getInput()->getInt('id'));
6565

66-
$moduleData = $module->getProperties();
66+
$moduleData = get_object_vars($module);
6767
unset($moduleData['xml']);
6868

6969
/** @var \Joomla\Component\Config\Site\Model\ModulesModel $model */

0 commit comments

Comments
 (0)