Made some changes to insure JCB is stable in PHP7, removed the related translations string from joomla_component view to speed up page load.
This commit is contained in:
@ -103,16 +103,16 @@ class ComponentbuilderModelLayout extends JModelAdmin
|
||||
$item->libraries = $libraries->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->layout))
|
||||
{
|
||||
// base64 Decode layout.
|
||||
$item->layout = base64_decode($item->layout);
|
||||
}
|
||||
|
||||
if (!empty($item->php_view))
|
||||
{
|
||||
// base64 Decode php_view.
|
||||
$item->php_view = base64_decode($item->php_view);
|
||||
}
|
||||
|
||||
if (!empty($item->layout))
|
||||
{
|
||||
// base64 Decode layout.
|
||||
$item->layout = base64_decode($item->layout);
|
||||
}
|
||||
|
||||
if (!empty($item->id))
|
||||
@ -839,16 +839,16 @@ class ComponentbuilderModelLayout extends JModelAdmin
|
||||
$data['libraries'] = '';
|
||||
}
|
||||
|
||||
// Set the layout string to base64 string.
|
||||
if (isset($data['layout']))
|
||||
{
|
||||
$data['layout'] = base64_encode($data['layout']);
|
||||
}
|
||||
|
||||
// Set the php_view string to base64 string.
|
||||
if (isset($data['php_view']))
|
||||
{
|
||||
$data['php_view'] = base64_encode($data['php_view']);
|
||||
}
|
||||
|
||||
// Set the layout string to base64 string.
|
||||
if (isset($data['layout']))
|
||||
{
|
||||
$data['layout'] = base64_encode($data['layout']);
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
|
Reference in New Issue
Block a user