Added a fix to insure the contributor details are added to JCB original snippets.

This commit is contained in:
2017-11-21 13:27:53 +02:00
parent 5ae67c1ecc
commit e652d5b5b7
6 changed files with 19 additions and 10 deletions

View File

@ -4365,6 +4365,14 @@ class com_componentbuilderInstallerScript
{
foreach($updater as $item)
{
// add contributor details to those made by JCB
if ($item->id < 94)
{
$item->contributor_company = 'Vast Development Method';
$item->contributor_name = 'Llewellyn van der Merwe';
$item->contributor_email = 'joomla@vdm.io';
$item->contributor_website = 'https://www.vdm.io/';
}
// update the snippets table with the new library ids
$db->updateObject('#__componentbuilder_snippet', $item, 'id');
}