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:
2018-03-12 00:36:14 +02:00
parent eb56fd3b48
commit e715fa1614
76 changed files with 3297 additions and 3407 deletions

View File

@@ -103,16 +103,16 @@ class ComponentbuilderModelTemplate extends JModelAdmin
$item->libraries = $libraries->toArray();
}
if (!empty($item->template))
{
// base64 Decode template.
$item->template = base64_decode($item->template);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->template))
{
// base64 Decode template.
$item->template = base64_decode($item->template);
}
if (!empty($item->id))
@@ -839,16 +839,16 @@ class ComponentbuilderModelTemplate extends JModelAdmin
$data['libraries'] = '';
}
// Set the template string to base64 string.
if (isset($data['template']))
{
$data['template'] = base64_encode($data['template']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the template string to base64 string.
if (isset($data['template']))
{
$data['template'] = base64_encode($data['template']);
}
// Set the Params Items to data