mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-03 15:00:48 +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;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Weblinks model.
|
* Weblinks model.
|
||||||
*
|
*
|
||||||
|
@ -197,12 +199,12 @@ class WeblinksModelWeblink extends JModelAdmin
|
||||||
if ($item = parent::getItem($pk))
|
if ($item = parent::getItem($pk))
|
||||||
{
|
{
|
||||||
// Convert the metadata field to an array.
|
// Convert the metadata field to an array.
|
||||||
$registry = new JRegistry;
|
$registry = new Registry;
|
||||||
$registry->loadString($item->metadata);
|
$registry->loadString($item->metadata);
|
||||||
$item->metadata = $registry->toArray();
|
$item->metadata = $registry->toArray();
|
||||||
|
|
||||||
// Convert the images field to an array.
|
// Convert the images field to an array.
|
||||||
$registry = new JRegistry;
|
$registry = new Registry;
|
||||||
$registry->loadString($item->images);
|
$registry->loadString($item->images);
|
||||||
$item->images = $registry->toArray();
|
$item->images = $registry->toArray();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user