Fix Deprecated when create new weblink
This commit is contained in:
parent
feec722574
commit
b3953c554c
|
@ -195,13 +195,11 @@ class WeblinkModel extends AdminModel
|
|||
if ($item = parent::getItem($pk))
|
||||
{
|
||||
// Convert the metadata field to an array.
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->metadata);
|
||||
$registry = new Registry($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
|
||||
// Convert the images field to an array.
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->images);
|
||||
$registry = new Registry($item->images);
|
||||
$item->images = $registry->toArray();
|
||||
|
||||
// Load associated web links items
|
||||
|
|
Loading…
Reference in New Issue