Skip to content

Commit f483db0

Browse files
authored
Merge pull request #45903 from Bodge-IT/upmerges/2025-08-13
[6.0] Upmerges - 2025-08-13 2nd attempt
2 parents d5aa1ca + 54c6d48 commit f483db0

File tree

188 files changed

+1237
-809
lines changed

Some content is hidden

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

188 files changed

+1237
-809
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function (Toolbar $childBar) use ($checkedOut, $canDo, $user, $isNew) {
142142
} else {
143143
$toolbar->cancel('banner.cancel');
144144

145-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $canDo->get('core.edit')) {
145+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $canDo->get('core.edit')) {
146146
$toolbar->versions('com_banners.banner', $this->item->id);
147147
}
148148
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function (Toolbar $childBar) use ($checkedOut, $canDo, $isNew) {
151151
} else {
152152
$toolbar->cancel('client.cancel');
153153

154-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $canDo->get('core.edit')) {
154+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $canDo->get('core.edit')) {
155155
$toolbar->versions('com_banners.client', $this->item->id);
156156
}
157157
}

administrator/components/com_contact/src/View/Contact/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function (Toolbar $childBar) use ($checkedOut, $itemEditable, $canDo, $user) {
200200

201201
$toolbar->cancel('contact.cancel');
202202

203-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $itemEditable) {
203+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $itemEditable) {
204204
$toolbar->versions('com_contact.contact', $this->item->id);
205205
}
206206

administrator/components/com_content/src/View/Article/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function (Toolbar $childBar) use ($checkedOut, $itemEditable, $canDo, $user) {
230230
$toolbar->cancel('article.cancel', 'JTOOLBAR_CLOSE');
231231

232232
if (!$isNew) {
233-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $itemEditable) {
233+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $itemEditable) {
234234
$toolbar->versions('com_content.article', $this->item->id);
235235
}
236236

administrator/components/com_contenthistory/src/View/History/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function addToolbar(): Toolbar
105105

106106
// Clean up input to ensure a clean url.
107107
$filter = InputFilter::getInstance();
108-
$aliasArray = explode('.', $this->state->item_id);
108+
$aliasArray = explode('.', $this->state->get('item_id'));
109109

110110
if ($aliasArray[1] === 'category') {
111111
$option = 'com_categories';

administrator/components/com_fields/src/Plugin/FieldsPlugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ abstract class FieldsPlugin extends CMSPlugin
4545
*
4646
* @var \Joomla\CMS\Application\CMSApplication
4747
* @since 4.0.0
48+
*
49+
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0 use $this->getApplication() instead
4850
*/
4951
protected $app;
5052

@@ -138,6 +140,7 @@ public function onCustomFieldsGetTypes()
138140
return $types_cache[$this->_type . $this->_name];
139141
}
140142

143+
$app = $this->getApplication() ?: $this->app;
141144
$types = [];
142145

143146
// The root of the plugin
@@ -160,11 +163,11 @@ public function onCustomFieldsGetTypes()
160163
// Needed attributes
161164
$data['type'] = $layout;
162165

163-
if ($this->app->getLanguage()->hasKey('PLG_FIELDS_' . $key . '_LABEL')) {
166+
if ($app->getLanguage()->hasKey('PLG_FIELDS_' . $key . '_LABEL')) {
164167
$data['label'] = Text::sprintf('PLG_FIELDS_' . $key . '_LABEL', strtolower($key));
165168

166169
// Fix wrongly set parentheses in RTL languages
167-
if ($this->app->getLanguage()->isRtl()) {
170+
if ($app->getLanguage()->isRtl()) {
168171
$data['label'] .= '‎';
169172
}
170173
} else {

administrator/components/com_finder/src/View/Searches/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function display($tpl = null)
112112
$this->state = $model->getState();
113113
$this->filterForm = $model->getFilterForm();
114114
$this->activeFilters = $model->getActiveFilters();
115-
$this->enabled = $this->state->params->get('gather_search_statistics', 0);
115+
$this->enabled = $this->state->get('params')->get('gather_search_statistics', 0);
116116
$this->canDo = ContentHelper::getActions('com_finder');
117117
$uri = Uri::getInstance();
118118
$link = 'index.php?option=com_config&view=component&component=com_finder&return=' . base64_encode($uri);

administrator/components/com_newsfeeds/src/View/Newsfeed/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function (Toolbar $childBar) use ($checkedOut, $canDo, $user, $isNew) {
178178
} else {
179179
$toolbar->cancel('newsfeed.cancel');
180180

181-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $canDo->get('core.edit')) {
181+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $canDo->get('core.edit')) {
182182
$toolbar->versions('com_newsfeeds.newsfeed', $this->item->id);
183183
}
184184
}

administrator/components/com_tags/src/View/Tag/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function (Toolbar $childBar) use ($checkedOut, $itemEditable, $canDo) {
173173

174174
$toolbar->cancel('tag.cancel');
175175

176-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $itemEditable) {
176+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $itemEditable) {
177177
$toolbar->versions('com_tags.tag', $this->item->id);
178178
}
179179
}

administrator/components/com_users/src/View/Note/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function (Toolbar $childBar) use ($checkedOut, $canDo, $user, $isNew) {
142142
} else {
143143
$toolbar->cancel('note.cancel');
144144

145-
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $canDo->get('core.edit')) {
145+
if (ComponentHelper::isEnabled('com_contenthistory') && $this->state->get('params')->get('save_history', 0) && $canDo->get('core.edit')) {
146146
$toolbar->versions('com_users.note', $this->item->id);
147147
}
148148
}

0 commit comments

Comments
 (0)