diff --git a/README.md b/README.md
index 1b002a182..660f9cddf 100644
--- a/README.md
+++ b/README.md
@@ -126,12 +126,12 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 24th April, 2018
++ *Last Build*: 26th April, 2018
+ *Version*: 2.7.6
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-+ *Line count*: **193223**
-+ *Field count*: **1026**
++ *Line count*: **193266**
++ *Field count*: **1027**
+ *File count*: **1201**
+ *Folder count*: **193**
diff --git a/admin/README.txt b/admin/README.txt
index 1b002a182..660f9cddf 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -126,12 +126,12 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 24th April, 2018
++ *Last Build*: 26th April, 2018
+ *Version*: 2.7.6
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-+ *Line count*: **193223**
-+ *Field count*: **1026**
++ *Line count*: **193266**
++ *Field count*: **1027**
+ *File count*: **1201**
+ *Folder count*: **193**
diff --git a/admin/config.xml b/admin/config.xml
index acedbd074..890b879d7 100644
--- a/admin/config.xml
+++ b/admin/config.xml
@@ -665,6 +665,21 @@
/>
+
+
Here you can se
COM_COMPONENTBUILDER_CONFIG_NOTE_LANGUAGE_GLOBAL_LABEL="Global Language Source"
COM_COMPONENTBUILDER_CONFIG_OFF="Off"
COM_COMPONENTBUILDER_CONFIG_ON="On"
+COM_COMPONENTBUILDER_CONFIG_ONLY_BOOLEAN="Only Boolean"
COM_COMPONENTBUILDER_CONFIG_ONLY_EXTRA="Only Extra"
COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_DESCRIPTION="[YEAR]
[MONTH]
[DAY]
[HOUR]
[MINUTE]
"
COM_COMPONENTBUILDER_CONFIG_PACKAGE_NAME_PLAEHOLDERS_LABEL="Package Name Placeholders"
@@ -2511,6 +2513,8 @@ COM_COMPONENTBUILDER_CONFIG_REPLYNAME_HINT="Reply Name Here"
COM_COMPONENTBUILDER_CONFIG_REPLYNAME_LABEL="Reply to Name"
COM_COMPONENTBUILDER_CONFIG_REPOSITORY_DESCRIPTION="Should the component be moved to your local repository folder?"
COM_COMPONENTBUILDER_CONFIG_REPOSITORY_LABEL="Add to Repository Folder"
+COM_COMPONENTBUILDER_CONFIG_RETURN_OPTIONS_BUILD_DESCRIPTION="Should the system return the build info/messages, or simply 1 for success and 0 for failure."
+COM_COMPONENTBUILDER_CONFIG_RETURN_OPTIONS_BUILD_LABEL="Return Options for Build"
COM_COMPONENTBUILDER_CONFIG_SENDMAIL="Sendmail"
COM_COMPONENTBUILDER_CONFIG_SENDMAIL_DESCRIPTION="Enter the path to the sendmail program directory on your host server."
COM_COMPONENTBUILDER_CONFIG_SENDMAIL_HINT="/usr/sbin/sendmail"
diff --git a/componentbuilder.xml b/componentbuilder.xml
index e095e3201..ae4a8985e 100644
--- a/componentbuilder.xml
+++ b/componentbuilder.xml
@@ -1,7 +1,7 @@
\n", $messages);
+ } else {
+ // var_dump($messages); // error debug message
+ }
+ };
// we have two options, doing them one at a time, use using curl to do tome somewhat asynchronously
if (count ( (array) $expansion) > 1 && function_exists('curl_version'))
{
@@ -238,17 +257,8 @@ class ComponentbuilderControllerApi extends JControllerForm
{
ComponentbuilderHelper::setWorker($component, 'compileInstall');
}
- // get messages function
- $callback = function($messages) {
- $messages = ComponentbuilderHelper::unlock($messages);
- // check if we have any messages
- if (ComponentbuilderHelper::checkArray($messages))
- {
- // echo "
\n".implode("
\n", $messages); // (TODO) adding a switch to show messages
- } else {
- var_dump($messages); // error debug message
- }
- };
+ // make sure to unlock
+ $unlock = true;
// run workers
ComponentbuilderHelper::runWorker('compileInstall', 1, $callback);
}
@@ -265,26 +275,40 @@ class ComponentbuilderControllerApi extends JControllerForm
$model->compileInstall($component);
}
// check if we have any messages
- if (ComponentbuilderHelper::checkArray($model->messages))
- {
- // echo the messages
- // echo "
\n".implode("
\n", $model->messages); // (TODO) adding a switch to show messages
- } else {
- var_dump($messages); // error debug message
- }
+ $callback($model->messages);
+ }
+ // return messages if found
+ if (1== $returnOptionsBuild && ComponentbuilderHelper::checkArray($message))
+ {
+ echo implode("
\n", $message);
+ }
+ else
+ {
+ echo 1;
}
// clear session
JFactory::getApplication()->getSession()->destroy();
jexit();
}
- // clear session
- JFactory::getApplication()->getSession()->destroy();
- jexit('Access Denied!');
+ // check if message is to be returned
+ if (1== $returnOptionsBuild)
+ {
+ // clear session
+ JFactory::getApplication()->getSession()->destroy();
+ jexit('Access Denied!');
+ }
}
}
// clear session
JFactory::getApplication()->getSession()->destroy();
- jexit('Expansion Disabled!');
+ // check if message is to be returned
+ if (1== $returnOptionsBuild)
+ {
+ jexit('Expansion Disabled!');
+ }
+ // return bool
+ echo 0;
+ jexit();
}
protected function getApiUser()