32
1
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:
Thomas Hunziker 2014-12-04 20:51:10 +01:00
parent dbf29cdc71
commit 8008a986b9

View File

@ -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();