Skip to content

Commit db9d95d

Browse files
authored
Merge pull request joomla#43936 from softforge/upmerges/2024-08-15
[6.0] Upmerges - 2024-08-17
2 parents ae903e9 + cd7a6c4 commit db9d95d

File tree

182 files changed

+2325
-1599
lines changed

Some content is hidden

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

182 files changed

+2325
-1599
lines changed

.drone.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ steps:
3131
- ./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .
3232
- echo $(date)
3333

34-
- name: phan
35-
image: joomlaprojects/docker-images:php8.1-ast
34+
- name: phpstan
35+
image: joomlaprojects/docker-images:php8.2
3636
depends_on: [ phpcs ]
3737
failure: ignore
3838
commands:
39-
- ./libraries/vendor/bin/phan
39+
- ./libraries/vendor/bin/phpstan
4040

4141
- name: npm
4242
image: node:20-bullseye-slim
@@ -430,6 +430,6 @@ trigger:
430430

431431
---
432432
kind: signature
433-
hmac: da473d9b50d583b1545f5cf2a927682dd7a428583c898337136c3dfaf9a0a2e2
433+
hmac: 74050d2d2bc8ce5b051e23b2deece0b88387564c7e646c9d1c11f26516b42d07
434434

435435
...

administrator/components/com_actionlogs/src/View/Actionlogs/HtmlView.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Joomla\CMS\MVC\View\GenericDataException;
1717
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1818
use Joomla\CMS\Pagination\Pagination;
19-
use Joomla\CMS\Toolbar\Toolbar;
2019
use Joomla\CMS\Toolbar\ToolbarHelper;
2120
use Joomla\Component\Actionlogs\Administrator\Helper\ActionlogsHelper;
2221
use Joomla\Component\Actionlogs\Administrator\Model\ActionlogsModel;
@@ -134,7 +133,7 @@ public function display($tpl = null)
134133
protected function addToolbar()
135134
{
136135
ToolbarHelper::title(Text::_('COM_ACTIONLOGS_MANAGER_USERLOGS'), 'icon-list-2');
137-
$toolbar = Toolbar::getInstance();
136+
$toolbar = $this->getDocument()->getToolbar();
138137

139138
$toolbar->standardButton('download', 'COM_ACTIONLOGS_EXPORT_CSV', 'actionlogs.exportSelectedLogs')
140139
->icon('icon-download')

administrator/components/com_admin/src/View/Sysinfo/HtmlView.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1616
use Joomla\CMS\Router\Route;
1717
use Joomla\CMS\Session\Session;
18-
use Joomla\CMS\Toolbar\Toolbar;
1918
use Joomla\CMS\Toolbar\ToolbarHelper;
2019
use Joomla\Component\Admin\Administrator\Model\SysinfoModel;
2120

@@ -111,7 +110,7 @@ public function display($tpl = null): void
111110
protected function addToolbar(): void
112111
{
113112
ToolbarHelper::title(Text::_('COM_ADMIN_SYSTEM_INFORMATION'), 'info-circle systeminfo');
114-
$toolbar = Toolbar::getInstance();
113+
$toolbar = $this->getDocument()->getToolbar();
115114
$toolbar->linkButton('download', 'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_TEXT')
116115
->url(Route::_('index.php?option=com_admin&view=sysinfo&format=text&' . Session::getFormToken() . '=1'));
117116

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1919
use Joomla\CMS\Pagination\Pagination;
2020
use Joomla\CMS\Router\Route;
21-
use Joomla\CMS\Toolbar\Toolbar;
2221
use Joomla\CMS\Toolbar\ToolbarHelper;
2322
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
2423
use Joomla\Component\Associations\Administrator\Model\AssociationModel;
@@ -358,7 +357,7 @@ protected function addToolbar(): void
358357
'language assoc'
359358
);
360359

361-
$toolbar = Toolbar::getInstance();
360+
$toolbar = $this->getDocument()->getToolbar();
362361
$toolbar->customButton('reference')
363362
->html('<joomla-toolbar-button><button onclick="Joomla.submitbutton(\'reference\')" '
364363
. 'class="btn btn-success"><span class="icon-save" aria-hidden="true"></span>'

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Joomla\CMS\Language\Text;
1616
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1717
use Joomla\CMS\Router\Route;
18-
use Joomla\CMS\Toolbar\Toolbar;
1918
use Joomla\CMS\Toolbar\ToolbarHelper;
2019
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
2120

@@ -268,7 +267,7 @@ protected function addToolbar()
268267
ToolbarHelper::title(Text::_('COM_ASSOCIATIONS_TITLE_LIST_SELECT'), 'language assoc');
269268
}
270269

271-
$toolbar = Toolbar::getInstance();
270+
$toolbar = $this->getDocument()->getToolbar();
272271

273272
if ($user->authorise('core.admin', 'com_associations') || $user->authorise('core.options', 'com_associations')) {
274273
if (!isset($this->typeName)) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function addToolbar(): void
101101
$userId = $user->id;
102102
$isNew = ($this->item->id == 0);
103103
$checkedOut = !(\is_null($this->item->checked_out) || $this->item->checked_out == $userId);
104-
$toolbar = Toolbar::getInstance();
104+
$toolbar = $this->getDocument()->getToolbar();
105105

106106
// Since we don't track these assets at the item level, use the category id.
107107
$canDo = ContentHelper::getActions('com_banners', 'category', $this->item->catid);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1919
use Joomla\CMS\Pagination\Pagination;
2020
use Joomla\CMS\Toolbar\Button\DropdownButton;
21-
use Joomla\CMS\Toolbar\Toolbar;
2221
use Joomla\CMS\Toolbar\ToolbarHelper;
2322
use Joomla\Component\Banners\Administrator\Model\BannersModel;
2423
use Joomla\Registry\Registry;
@@ -142,7 +141,7 @@ protected function addToolbar(): void
142141
{
143142
$canDo = ContentHelper::getActions('com_banners', 'category', $this->state->get('filter.category_id'));
144143
$user = $this->getCurrentUser();
145-
$toolbar = Toolbar::getInstance();
144+
$toolbar = $this->getDocument()->getToolbar();
146145

147146
ToolbarHelper::title(Text::_('COM_BANNERS_MANAGER_BANNERS'), 'bookmark banners');
148147

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function addToolbar(): void
111111
$isNew = ($this->item->id == 0);
112112
$checkedOut = !(\is_null($this->item->checked_out) || $this->item->checked_out == $user->id);
113113
$canDo = $this->canDo;
114-
$toolbar = Toolbar::getInstance();
114+
$toolbar = $this->getDocument()->getToolbar();
115115

116116
ToolbarHelper::title(
117117
$isNew ? Text::_('COM_BANNERS_MANAGER_CLIENT_NEW') : Text::_('COM_BANNERS_MANAGER_CLIENT_EDIT'),

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Joomla\CMS\MVC\View\GenericDataException;
1717
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1818
use Joomla\CMS\Pagination\Pagination;
19-
use Joomla\CMS\Toolbar\Toolbar;
2019
use Joomla\CMS\Toolbar\ToolbarHelper;
2120
use Joomla\Component\Banners\Administrator\Model\ClientsModel;
2221

@@ -124,7 +123,7 @@ public function display($tpl = null): void
124123
protected function addToolbar(): void
125124
{
126125
$canDo = ContentHelper::getActions('com_banners');
127-
$toolbar = Toolbar::getInstance();
126+
$toolbar = $this->getDocument()->getToolbar();
128127

129128
ToolbarHelper::title(Text::_('COM_BANNERS_MANAGER_CLIENTS'), 'bookmark banners-clients');
130129

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1818
use Joomla\CMS\Pagination\Pagination;
1919
use Joomla\CMS\Router\Route;
20-
use Joomla\CMS\Toolbar\Toolbar;
2120
use Joomla\CMS\Toolbar\ToolbarHelper;
2221
use Joomla\Component\Banners\Administrator\Model\TracksModel;
2322

@@ -124,7 +123,7 @@ public function display($tpl = null): void
124123
protected function addToolbar(): void
125124
{
126125
$canDo = ContentHelper::getActions('com_banners', 'category', $this->state->get('filter.category_id'));
127-
$toolbar = Toolbar::getInstance();
126+
$toolbar = $this->getDocument()->getToolbar();
128127

129128
ToolbarHelper::title(Text::_('COM_BANNERS_MANAGER_TRACKS'), 'bookmark banners-tracks');
130129

0 commit comments

Comments
 (0)