Skip to content

Commit b5cce0a

Browse files
authored
Merge pull request #459 from joomla/remove/actionslogsfunction
Remove the static getLogContentTypeParams function
2 parents 0b31e8f + a20bc29 commit b5cce0a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

migrations/54-60/removed-backward-incompatibility.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,18 @@ $table = new \Joomla\CMS\Table\Content($db);
242242
- PR: https://github.com/joomla/joomla-cms/pull/45425
243243
- File: libraries/src/Application/WebApplication.php
244244
- Description: The `$item_associations` was added to the `WebApplication` class for improved PHP 8.2 compatibility and is not used at all.
245+
246+
### getLogContentTypeParams of the ActionlogsHelper got removed
247+
248+
- PR: https://github.com/joomla/joomla-cms/pull/45434
249+
- File: administrator/components/com_actionlogs/src/Helper/ActionlogsHelper.php
250+
- Description: The `getLogContentTypeParams` function in the the `ActionlogsHelper` class got removed as the one in the model should be used:
251+
252+
```php
253+
// Old:
254+
ActionlogsHelper::getLogContentTypeParams('context');
255+
256+
// New:
257+
Factory::getApplication()->bootComponent('actionlogs')->getMVCFactory()
258+
->createModel('ActionlogConfig', 'Administrator')->getLogContentTypeParams('context');
259+
```

0 commit comments

Comments
 (0)