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

This commit was merged in pull request #183.
This commit is contained in:
Llewellyn committed 2017-11-21 13:27:53 +02:00
1 parent 5ae67c1ecc
commit e652d5b5b7
6 files changed
+19 -10

No files matched your search

+8
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');
}