mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 01:57:30 +00:00
Update references to JRegistry for administrator folder.
This commit is contained in:
parent
dbf29cdc71
commit
8008a986b9
@ -9,6 +9,8 @@
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
/**
|
||||
* Weblinks model.
|
||||
*
|
||||
@ -197,12 +199,12 @@ class WeblinksModelWeblink extends JModelAdmin
|
||||
if ($item = parent::getItem($pk))
|
||||
{
|
||||
// Convert the metadata field to an array.
|
||||
$registry = new JRegistry;
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
|
||||
// Convert the images field to an array.
|
||||
$registry = new JRegistry;
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->images);
|
||||
$item->images = $registry->toArray();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user