Skip to content

Commit 8d71ddd

Browse files
authored
Merge pull request joomla#44177 from softforge/upmerges/2024-10-02
[6.0] Upmerges 2024-10-02
2 parents 324571b + 4c86530 commit 8d71ddd

File tree

180 files changed

+1061
-805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+1061
-805
lines changed

.drone.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,16 @@ steps:
408408
- rclone delete nightly:/home/devj/public_html/nightlies/ --include "Joomla_$MINORVERSION.*"
409409
- rclone delete nightly:/home/devj/public_html/cache/com_content/
410410
- rclone copy ./transfer/ nightly:/home/devj/public_html/nightlies/
411-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 6.0](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
411+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
412412

413413
- name: buildfailure
414414
image: joomlaprojects/docker-images:packager
415415
environment:
416416
MATTERMOST_NIGHTLY_HOOK:
417417
from_secret: mattermost_nightly_hook
418418
commands:
419-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 6.0](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
419+
- export MINORVERSION=${DRONE_BRANCH%-*}
420+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
420421
when:
421422
status:
422423
- failure
@@ -430,6 +431,6 @@ trigger:
430431

431432
---
432433
kind: signature
433-
hmac: 74050d2d2bc8ce5b051e23b2deece0b88387564c7e646c9d1c11f26516b42d07
434+
hmac: 4651bf03bdeacfec868856dca94418b8999543e6bc05c3797e927734c878ea89
434435

435436
...

.github/workflows/create-translation-pull-request-v5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
JOOMLA_MAJOR_VERSION: 5
15-
JOOMLA_MINOR_VERSION: 5.2
15+
JOOMLA_MINOR_VERSION: 5.3
1616

1717
permissions:
1818
contents: read

administrator/components/com_associations/src/View/Associations/HtmlView.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Joomla\CMS\Router\Route;
1818
use Joomla\CMS\Toolbar\ToolbarHelper;
1919
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
20+
use Joomla\Component\Associations\Administrator\Model\AssociationsModel;
2021

2122
// phpcs:disable PSR1.Files.SideEffects
2223
\defined('_JEXEC') or die;
@@ -126,9 +127,12 @@ class HtmlView extends BaseHtmlView
126127
*/
127128
public function display($tpl = null)
128129
{
129-
$this->state = $this->get('State');
130-
$this->filterForm = $this->get('FilterForm');
131-
$this->activeFilters = $this->get('ActiveFilters');
130+
/** @var AssociationsModel $model */
131+
$model = $this->getModel();
132+
133+
$this->state = $model->getState();
134+
$this->filterForm = $model->getFilterForm();
135+
$this->activeFilters = $model->getActiveFilters();
132136

133137
if (!Associations::isEnabled()) {
134138
$link = Route::_('index.php?option=com_plugins&task=plugin.edit&extension_id=' . AssociationsHelper::getLanguagefilterPluginId());
@@ -211,8 +215,8 @@ public function display($tpl = null)
211215
}
212216
}
213217

214-
$this->items = $this->get('Items');
215-
$this->pagination = $this->get('Pagination');
218+
$this->items = $model->getItems();
219+
$this->pagination = $model->getPagination();
216220

217221
$linkParameters = [
218222
'layout' => 'edit',
@@ -225,7 +229,7 @@ public function display($tpl = null)
225229
}
226230

227231
// Check for errors.
228-
if (\count($errors = $this->get('Errors'))) {
232+
if (\count($errors = $model->getErrors())) {
229233
throw new \Exception(implode("\n", $errors), 500);
230234
}
231235

administrator/components/com_banners/src/View/Banner/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function display($tpl = null): void
7676
$this->state = $model->getState();
7777

7878
// Check for errors.
79-
if (\count($errors = $this->get('Errors'))) {
79+
if (\count($errors = $model->getErrors())) {
8080
throw new GenericDataException(implode("\n", $errors), 500);
8181
}
8282

administrator/components/com_banners/src/View/Banners/HtmlView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ public function display($tpl = null): void
110110
$this->filterForm = $model->getFilterForm();
111111
$this->activeFilters = $model->getActiveFilters();
112112

113-
if (!\count($this->items) && $this->isEmptyState = $this->get('IsEmptyState')) {
113+
if (!\count($this->items) && $this->isEmptyState = $model->getIsEmptyState()) {
114114
$this->setLayout('emptystate');
115115
}
116116

117117
// Check for errors.
118-
if (\count($errors = $this->get('Errors'))) {
118+
if (\count($errors = $model->getErrors())) {
119119
throw new GenericDataException(implode("\n", $errors), 500);
120120
}
121121

administrator/components/com_banners/src/View/Client/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function display($tpl = null): void
8585
$this->canDo = ContentHelper::getActions('com_banners');
8686

8787
// Check for errors.
88-
if (\count($errors = $this->get('Errors'))) {
88+
if (\count($errors = $model->getErrors())) {
8989
throw new GenericDataException(implode("\n", $errors), 500);
9090
}
9191

administrator/components/com_banners/src/View/Clients/HtmlView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ public function display($tpl = null): void
9999
$this->filterForm = $model->getFilterForm();
100100
$this->activeFilters = $model->getActiveFilters();
101101

102-
if (!\count($this->items) && $this->isEmptyState = $this->get('IsEmptyState')) {
102+
if (!\count($this->items) && $this->isEmptyState = $model->getIsEmptyState()) {
103103
$this->setLayout('emptystate');
104104
}
105105

106106
// Check for errors.
107-
if (\count($errors = $this->get('Errors'))) {
107+
if (\count($errors = $model->getErrors())) {
108108
throw new GenericDataException(implode("\n", $errors), 500);
109109
}
110110

administrator/components/com_banners/src/View/Download/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function display($tpl = null): void
5252
$this->form = $model->getForm();
5353

5454
// Check for errors.
55-
if (\count($errors = $this->get('Errors'))) {
55+
if (\count($errors = $model->getErrors())) {
5656
throw new GenericDataException(implode("\n", $errors), 500);
5757
}
5858

administrator/components/com_banners/src/View/Tracks/HtmlView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ public function display($tpl = null): void
9999
$this->filterForm = $model->getFilterForm();
100100
$this->activeFilters = $model->getActiveFilters();
101101

102-
if (!\count($this->items) && $this->isEmptyState = $this->get('IsEmptyState')) {
102+
if (!\count($this->items) && $this->isEmptyState = $model->getIsEmptyState()) {
103103
$this->setLayout('emptystate');
104104
}
105105

106106
// Check for errors.
107-
if (\count($errors = $this->get('Errors'))) {
107+
if (\count($errors = $model->getErrors())) {
108108
throw new GenericDataException(implode("\n", $errors), 500);
109109
}
110110

administrator/components/com_banners/src/View/Tracks/RawView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function display($tpl = null): void
4848
$content = $model->getContent();
4949

5050
// Check for errors.
51-
if (\count($errors = $this->get('Errors'))) {
51+
if (\count($errors = $model->getErrors())) {
5252
throw new GenericDataException(implode("\n", $errors), 500);
5353
}
5454

0 commit comments

Comments
 (0)