Fix the compiler path in component xml, that was dropped due to new advance folder & file improvment
This commit is contained in:
parent
c7551c6edd
commit
9e27cd0e3a
@ -130,10 +130,10 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Version*: 2.6.15
|
||||
+ *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*: **181502**
|
||||
+ *Line count*: **181503**
|
||||
+ *Field count*: **1641**
|
||||
+ *File count*: **1170**
|
||||
+ *Folder count*: **187**
|
||||
+ *File count*: **1169**
|
||||
+ *Folder count*: **188**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -130,10 +130,10 @@ Component Builder is mapped as a component in itself on my local development env
|
||||
+ *Version*: 2.6.15
|
||||
+ *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*: **181502**
|
||||
+ *Line count*: **181503**
|
||||
+ *Field count*: **1641**
|
||||
+ *File count*: **1170**
|
||||
+ *Folder count*: **187**
|
||||
+ *File count*: **1169**
|
||||
+ *Folder count*: **188**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -717,7 +717,7 @@ class Structure extends Get
|
||||
$zipPath = str_replace('c0mp0n3nt/', '', $details->path);
|
||||
$path = str_replace('c0mp0n3nt/', $this->componentPath . '/', $details->path);
|
||||
// set the template folder path
|
||||
$templatePath = (isset($details->custom)) ? (($details->custom === 'custom') ? $this->templatePathCustom.'/' : '') : $this->templatePath.'/';
|
||||
$templatePath = (isset($details->custom) && $details->custom) ? (($details->custom !== 'full') ? $this->templatePathCustom.'/':'') : $this->templatePath.'/';
|
||||
// now mov the file
|
||||
if ($details->type === 'file')
|
||||
{
|
||||
@ -1143,6 +1143,7 @@ class Structure extends Get
|
||||
$custom['path'] = str_replace('/' . $lastFolder, '', $custom['path']);
|
||||
$rename = 'new';
|
||||
$newname = $lastFolder;
|
||||
// add fix to insure it gets added to xml if needed
|
||||
if (($tkey = array_search($lastFolder, $pathArray)) !== false)
|
||||
{
|
||||
unset($pathArray[$tkey]);
|
||||
@ -1155,6 +1156,11 @@ class Structure extends Get
|
||||
$lastFolder = end($folderArray);
|
||||
$rename = 'new';
|
||||
$newname = $lastFolder;
|
||||
// add fix to insure it gets added to xml if needed
|
||||
if (($tkey = array_search($lastFolder, $pathArray)) !== false)
|
||||
{
|
||||
unset($pathArray[$tkey]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -104,6 +104,7 @@ Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/compo
|
||||
<folder>views</folder>
|
||||
<folder>layouts</folder>
|
||||
<folder>custom</folder>
|
||||
<folder>compiler</folder>
|
||||
</files>
|
||||
|
||||
<languages folder="admin">
|
||||
|
Loading…
Reference in New Issue
Block a user