Resolved gh-436 so that the new Joomla plugin builder/feature is fully active, and part of the import and export of JCB packages.
This commit is contained in:
@ -163,15 +163,15 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
$set['placeholders'] = $addPlaceholders;
|
||||
$set['debuglinenr'] = $debugLinenr;
|
||||
$set['minify'] = $minify;
|
||||
// start up Compiler
|
||||
$this->compiler = new Compiler($set);
|
||||
// run compiler
|
||||
$this->compiler = new Compiler($set);
|
||||
if($this->compiler)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function emptyFolder($dir, $removeDir = false)
|
||||
{
|
||||
jimport('joomla.filesystem.folder');
|
||||
@ -210,7 +210,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function install($p_file)
|
||||
{
|
||||
$this->setState('action', 'install');
|
||||
@ -238,7 +238,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$config = JFactory::getConfig();
|
||||
$tmp_dest = $config->get('tmp_path');
|
||||
|
||||
@ -259,7 +259,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Was the package unpacked?
|
||||
if (!$package || !$package['type'])
|
||||
{
|
||||
@ -280,7 +280,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
}
|
||||
else
|
||||
{
|
||||
// Package installed sucessfully.
|
||||
// Package installed successfully.
|
||||
$msg = JText::sprintf('COM_INSTALLER_INSTALL_SUCCESS', JText::_('COM_INSTALLER_TYPE_TYPE_' . strtoupper($package['type'])));
|
||||
$result = true;
|
||||
$msgType = 'message';
|
||||
|
Reference in New Issue
Block a user