Fixed gh-422 to insure the details tab always gets added if no custom tab names are found. Added the option to run the expantion option without installing the components locally.
This commit is contained in:
@@ -82,6 +82,8 @@ COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FIELD_COULD_NOT_BE_LOADED_FOR_BSB_SERVER="T
|
||||
COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FILE_COULD_NOT_BE_LOADEDFOUND_FOR_BSB_SERVER="The private key file could not be loaded/found for <b>%s</b> server!"
|
||||
COM_COMPONENTBUILDER_THE_SERVER_DETAILS_FOR_BID_SB_COULD_NOT_BE_RETRIEVED="The server details for <b>(ID: %s)</b> could not be retrieved!"
|
||||
COM_COMPONENTBUILDER_THE_S_WAS_NOT_INSTALLED_AND_IS_STILL_IN_THE_TEMP_FOLDER="The %s was not Installed and is still in the temp folder."
|
||||
COM_COMPONENTBUILDER_THE_S_WAS_NOT_INSTALLED_BY_YOUR_REQUEST_AND_IS_ALSO_REMOVED_FROM_TEMP_FOLDER="The %s was not Installed by your request and is also removed from temp folder."
|
||||
COM_COMPONENTBUILDER_THE_S_WAS_NOT_INSTALLED_BY_YOUR_REQUEST_AND_IS_STILL_IN_THE_TEMP_FOLDER="The %s was not Installed by your request and is still in the temp folder."
|
||||
COM_COMPONENTBUILDER_THE_S_WAS_SUCCESSFULLY_COMPILED="The %s was successfully compiled."
|
||||
COM_COMPONENTBUILDER_THE_S_WAS_SUCCESSFULLY_INSTALLED_AND_REMOVED_FROM_TEMP_FOLDER="The %s was successfully Installed and removed from temp folder."
|
||||
COM_COMPONENTBUILDER_THE_URL_S_SET_TO_RETRIEVE_THE_PACKAGES_DOES_NOT_EXIST="The url (%s) set to retrieve the packages does not exist!"
|
||||
|
@@ -191,6 +191,7 @@ class ComponentbuilderModelApi extends JModelItem
|
||||
{
|
||||
$values = array(
|
||||
'version' => 3,
|
||||
'install' => 1,
|
||||
'component' => 0,
|
||||
'backup' => 0,
|
||||
'repository' => 0,
|
||||
@@ -224,11 +225,28 @@ class ComponentbuilderModelApi extends JModelItem
|
||||
// get compiler model to run the installer
|
||||
$model = ComponentbuilderHelper::getModel('compiler', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
// now install components
|
||||
if ($model->install($this->compiler->componentFolderName.'.zip'))
|
||||
if (1 == $values['install'] && $model->install($this->compiler->componentFolderName.'.zip'))
|
||||
{
|
||||
// component was installed
|
||||
$this->messages[] = JText::sprintf('COM_COMPONENTBUILDER_THE_S_WAS_SUCCESSFULLY_INSTALLED_AND_REMOVED_FROM_TEMP_FOLDER', $this->compiler->componentFolderName);
|
||||
}
|
||||
elseif (1 != $values['install'])
|
||||
{
|
||||
jimport('joomla.filesystem.file');
|
||||
$config = JFactory::getConfig();
|
||||
$package = $config->get('tmp_path') . '/' . $this->compiler->componentFolderName.'.zip';
|
||||
// just remove from temp
|
||||
if (JFile::delete($package) && !is_file($package))
|
||||
{
|
||||
// component was installed
|
||||
$this->messages[] = JText::sprintf('COM_COMPONENTBUILDER_THE_S_WAS_NOT_INSTALLED_BY_YOUR_REQUEST_AND_IS_ALSO_REMOVED_FROM_TEMP_FOLDER', $this->compiler->componentFolderName);
|
||||
}
|
||||
else
|
||||
{
|
||||
// component was not installed
|
||||
$this->messages[] = JText::sprintf('COM_COMPONENTBUILDER_THE_S_WAS_NOT_INSTALLED_BY_YOUR_REQUEST_AND_IS_STILL_IN_THE_TEMP_FOLDER', $this->compiler->componentFolderName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// component was not installed
|
||||
|
Reference in New Issue
Block a user