52
0

update - v1.0.2

This commit is contained in:
Llewellyn van der Merwe 2021-10-14 16:31:22 +02:00
parent d1b424e3b0
commit b99aea2be4
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
7 changed files with 185 additions and 31 deletions

View File

@ -5,7 +5,7 @@
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
@ -22,7 +22,7 @@ JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/c
* Extension - Componentbuilder ActionLog Compiler plugin.
*
* @package ComponentbuilderActionLogCompiler
* @since 1.0.0
* @since 1.0.2
*/
class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
{
@ -85,11 +85,14 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
public function jcb_ce_onBeforeGetComponentData(&$context, $compiler)
{
// sync needed compiler class properties with this plugin class
$this->debugLinenr = $compiler->debugLinenr;
$this->hhh = $compiler->hhh;
$this->bbb = $compiler->bbb;
$this->ddd = $compiler->ddd;
if ($this->componentActive($context))
{
// sync needed compiler class properties with this plugin class
$this->debugLinenr = $compiler->debugLinenr;
$this->hhh = $compiler->hhh;
$this->bbb = $compiler->bbb;
$this->ddd = $compiler->ddd;
}
}
/**
@ -101,7 +104,7 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
public function jcb_ce_onAfterGetComponentData(&$context, $compiler)
{
if (ComponentbuilderHelper::checkArray($this->languageArray))
if ($this->componentActive($context) && ComponentbuilderHelper::checkArray($this->languageArray))
{
foreach($this->languageArray as $key => $string)
{
@ -119,15 +122,18 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
public function jcb_ce_onAfterBuildFilesContent(&$context, &$componentData, &$fileContentStatic, &$fileContentDynamic, &$placeholders, &$hhh)
{
// now load the script strings to the component
foreach ($this->scriptsArray as $target => &$bucket)
if ($this->componentActive($context))
{
// add the component main target script
$fileContentStatic[$hhh. $target . $hhh] .= $this->{'getMain' . $target}($placeholders);
// add the component views target scripts
if (ComponentbuilderHelper::checkArray($bucket))
// now load the script strings to the component
foreach ($this->scriptsArray as $target => &$bucket)
{
$fileContentStatic[$hhh. $target . $hhh] .= implode('', $bucket);
// add the component main target script
$fileContentStatic[$hhh. $target . $hhh] .= $this->{'getMain' . $target}($placeholders);
// add the component views target scripts
if (ComponentbuilderHelper::checkArray($bucket))
{
$fileContentStatic[$hhh. $target . $hhh] .= implode('', $bucket);
}
}
}
}
@ -142,7 +148,7 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
public function jcb_ce_onAfterModelViewData(&$context, &$view, &$placeholders)
{
// add the better integration with action log
if (ComponentbuilderHelper::checkArray($view->fields))
if ($this->componentActive($context) &&ComponentbuilderHelper::checkArray($view->fields))
{
foreach ($view->fields as $field)
{
@ -199,7 +205,13 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getMainPOSTINSTALLSCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "component" . $this->ddd . " action logs extensions object.";
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(3) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "component" . $this->ddd . " action logs extensions object.";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions = new stdClass();";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions->extension = 'com_" . $this->bbb . "component" . $this->ddd . "';";
@ -217,7 +229,13 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getViewPOSTINSTALLSCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "view" . $this->ddd . " action log config object.";
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(3) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "view" . $this->ddd . " action log config object.";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config = new stdClass();";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config->type_title = '" . $this->bbb . "VIEW" . $this->ddd . "';";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config->type_alias = 'com_" . $this->bbb . "component" . $this->ddd . "." . $this->bbb . "view" . $this->ddd . "';";
@ -240,7 +258,13 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getMainPOSTUPDATESCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "component" . $this->ddd . " action logs extensions object.";
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(3) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "component" . $this->ddd . " action logs extensions object.";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions = new stdClass();";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions->extension = 'com_" . $this->bbb . "component" . $this->ddd . "';";
@ -255,7 +279,7 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
$script .= PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Set the object into the action logs extensions table if not found.";
$script .= PHP_EOL . $this->_t(3) . "if (!\$db->getNumRows())";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(3) . "\t\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions_Inserted = \$db->insertObject('#__action_logs_extensions', \$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions);";
$script .= PHP_EOL . $this->_t(4) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions_Inserted = \$db->insertObject('#__action_logs_extensions', \$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions);";
$script .= PHP_EOL . $this->_t(3) . "}";
return str_replace(array_keys($placeholders), array_values($placeholders), $script);
@ -269,7 +293,13 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getViewPOSTUPDATESCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "view" . $this->ddd . " action log config object.";
$script = PHP_EOL . PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(3) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(3) . "{";
$script .= PHP_EOL . $this->_t(4) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(3) . "}";
$script .= PHP_EOL . $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the " . $this->bbb . "view" . $this->ddd . " action log config object.";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config = new stdClass();";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config->id = null;";
$script .= PHP_EOL . $this->_t(3) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config->type_title = '" . $this->bbb . "VIEW" . $this->ddd . "';";
@ -309,14 +339,26 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getMainUNINSTALLSCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Remove " . $this->bbb . "Component" . $this->ddd . " from the action_logs_extensions table";
$script = PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(2) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(2) . "}";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Set app if not set already.";
$script .= PHP_EOL . $this->_t(2) . "if (!isset(\$app))";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "\$app = JFactory::getApplication();";
$script .= PHP_EOL . $this->_t(2) . "}";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Remove " . $this->bbb . "Component" . $this->ddd . " from the action_logs_extensions table";
$script .= PHP_EOL . $this->_t(2) . "\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions = array( \$db->quoteName('extension') . ' = ' . \$db->quote('com_" . $this->bbb . "component" . $this->ddd . "') );";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(2) . "\$query = \$db->getQuery(true);";
$script .= PHP_EOL . $this->_t(2) . "\$query->delete(\$db->quoteName('#__action_logs_extensions'));";
$script .= PHP_EOL . $this->_t(2) . "\$query->where(\$" . $this->bbb . "component" . $this->ddd . "_action_logs_extensions);";
$script .= PHP_EOL . $this->_t(2) . "\$db->setQuery(\$query);";
$script .= PHP_EOL . $this->_t(2) . "// Execute the query to remove " . $this->bbb . "Component" . $this->ddd . "";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Execute the query to remove " . $this->bbb . "Component" . $this->ddd . "";
$script .= PHP_EOL . $this->_t(2) . "\$" . $this->bbb . "component" . $this->ddd . "_removed_done = \$db->execute();";
$script .= PHP_EOL . $this->_t(2) . "if (\$" . $this->bbb . "component" . $this->ddd . "_removed_done)";
$script .= PHP_EOL . $this->_t(2) . "{";
@ -335,7 +377,18 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
*/
protected function getViewUNINSTALLSCRIPT(&$placeholders)
{
$script = PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Remove " . $this->bbb . "Component" . $this->ddd . " " . $this->bbb . "View" . $this->ddd . " from the action_log_config table";
$script = PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Set db if not set already.";
$script .= PHP_EOL . $this->_t(2) . "if (!isset(\$db))";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "\$db = JFactory::getDbo();";
$script .= PHP_EOL . $this->_t(2) . "}";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Set app if not set already.";
$script .= PHP_EOL . $this->_t(2) . "if (!isset(\$app))";
$script .= PHP_EOL . $this->_t(2) . "{";
$script .= PHP_EOL . $this->_t(3) . "\$app = JFactory::getApplication();";
$script .= PHP_EOL . $this->_t(2) . "}";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Remove " . $this->bbb . "Component" . $this->ddd . " " . $this->bbb . "View" . $this->ddd . " from the action_log_config table";
$script .= PHP_EOL . $this->_t(2) . "\$" . $this->bbb . "view" . $this->ddd . "_action_log_config = array( \$db->quoteName('type_alias') . ' = '. \$db->quote('com_" . $this->bbb . "component" . $this->ddd . "." . $this->bbb . "view" . $this->ddd . "') );";
$script .= PHP_EOL . $this->_t(2) . "//" . $this->setLine(__LINE__) . " Create a new query object.";
$script .= PHP_EOL . $this->_t(2) . "\$query = \$db->getQuery(true);";
@ -384,4 +437,51 @@ class PlgExtensionComponentbuilderActionLogCompiler extends CMSPlugin
return ComponentbuilderHelper::_t($nr);
}
/**
* The array of active components
*
* @var array
*/
protected $componentsActive;
/**
* The activate option
*
* @var int
*/
protected $activateOption = 0;
/**
* Set the line number in comments
*
* @param string $context The context of the current executing component
*
* @return bool
*
*/
protected function componentActive(&$context)
{
// check the active option
if (!$this->activateOption)
{
$this->activateOption = $this->params->get('activate_option', 1);
}
// active for all components
if ($this->activateOption == 1)
{
return true;
}
// first check is we have the active components set
if ($this->activateOption == 2 && !ComponentbuilderHelper::checkArray($this->componentsActive))
{
$this->componentsActive = $this->params->get('components');
}
// only check if there are active
if (ComponentbuilderHelper::checkArray($this->componentsActive))
{
return in_array((int) filter_var($context, FILTER_SANITIZE_NUMBER_INT), $this->componentsActive);
}
return false;
}
}

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="extension" method="upgrade">
<name>PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER</name>
<creationDate>6th November, 2019</creationDate>
<creationDate>20th February, 2021</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
<copyright>Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.</copyright>
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.0.0</version>
<version>1.0.2</version>
<description>PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_XML_DESCRIPTION</description>
<!-- Scripts to run on installation -->
@ -25,4 +25,42 @@
<filename>index.html</filename>
<folder>language</folder>
</files>
<!-- Config parameter -->
<config
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fields name="params">
<fieldset name="activate" label="PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENT_ACTIVATION">
<!-- Activate_option Field. Type: Radio. (joomla) -->
<field
type="radio"
name="activate_option"
label="PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_LABEL"
description="PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ALL</option>
<option value="2">
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_SELECTED</option>
</field>
<!-- Components Field. Type: Joomlacomponents. (custom) -->
<field
type="joomlacomponents"
name="components"
label="PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_LABEL"
description="PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
showon="activate_option:2"
button="false"
/>
</fieldset>
</fields>
</config>
</extension>

View File

@ -1,3 +1,10 @@
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER="Extension - Componentbuilder ActionLog Compiler"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_DESCRIPTION="This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field."
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder ActionLog Compiler (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th August, 2019</small></p>"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder ActionLog Compiler (v.1.0.2)</h1> <div style='clear: both;'></div><p>This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th August, 2019</small></p>"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENT_ACTIVATION="Component Activation"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_DESCRIPTION="You can select the kind of activation control you would like to use. <b>All</b> will target all components, and <b>Selected</b> will let you select only those you want to be active."
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ALL="All"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_SELECTED="Selected"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_LABEL="Components"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_DESCRIPTION="Select the components you would like to be targeted."

View File

@ -1,3 +1,10 @@
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER="Extension - Componentbuilder ActionLog Compiler"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_DESCRIPTION="This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field."
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder ActionLog Compiler (v.1.0.0)</h1> <div style='clear: both;'></div><p>This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th August, 2019</small></p>"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder ActionLog Compiler (v.1.0.2)</h1> <div style='clear: both;'></div><p>This plugin is used to improve your action log integration with Joomla for your component during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.</p><p>Created by <a href='http://www.joomlacomponentbuilder.com' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 27th August, 2019</small></p>"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENT_ACTIVATION="Component Activation"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ACTIVATE_OPTION_DESCRIPTION="You can select the kind of activation control you would like to use. <b>All</b> will target all components, and <b>Selected</b> will let you select only those you want to be active."
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_ALL="All"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_SELECTED="Selected"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_LABEL="Components"
PLG_EXTENSION_COMPONENTBUILDERACTIONLOGCOMPILER_COMPONENTS_DESCRIPTION="Select the components you would like to be targeted."

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

1
language/index.html Normal file
View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -5,7 +5,7 @@
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
@ -47,7 +47,7 @@ class plgExtensionComponentbuilderActionLogCompilerInstallerScript
$pathToCore = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php';
if (!JFile::exists($pathToCore))
{
$app->enqueueMessage('JCB must first be installed from <a href="https://www.joomlacomponentbuilder.com/" target="_blank">Joomla Component Builder</a>.', 'error');
$app->enqueueMessage('Joomla Component Builder must first be installed from <a href="https://www.joomlacomponentbuilder.com/ " target="_blank">Joomla Component Builder</a>.', 'error');
return false;
}
}