Skip to content

Commit fecc7e9

Browse files
authored
[6.0] Fix deprecated message in messages - my settings (#46475)
* Fix deprecated message in my settings * Simplify code * back to registry
1 parent e6577f1 commit fecc7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getItem()
8686

8787
foreach ($rows as $row) {
8888
$property = $row->cfg_name;
89-
$item->$property = $row->cfg_value;
89+
$item->set($property, $row->cfg_value);
9090
}
9191

9292
$this->preprocessData('com_messages.config', $item);

0 commit comments

Comments
 (0)