Improved the JCB package export/import feature to insure that the new full paths are also moved, also made a few bug fixes in this area to better deal with divergent data id managment
This commit is contained in:
@ -319,56 +319,6 @@ class Structure extends Get
|
||||
* @var array
|
||||
*/
|
||||
protected $lastModifiedDate = array();
|
||||
|
||||
/**
|
||||
* The array of dynamic paths
|
||||
*
|
||||
* JPATH_SITE is meant to represent the root path of the JSite application, just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.
|
||||
*
|
||||
* JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:
|
||||
*
|
||||
* JPATH_BASE == JPATH_ADMINISTRATOR
|
||||
*
|
||||
* If you are in the site application:
|
||||
*
|
||||
* JPATH_BASE == JPATH_SITE
|
||||
*
|
||||
* If you are in the installation application:
|
||||
*
|
||||
* JPATH_BASE == JPATH_INSTALLATION.
|
||||
*
|
||||
* JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $constantPaths = array(
|
||||
// The path to the administrator folder.
|
||||
'JPATH_ADMINISTRATOR' => JPATH_ADMINISTRATOR,
|
||||
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.
|
||||
'JPATH_BASE' => JPATH_BASE,
|
||||
// The path to the cache folder.
|
||||
'JPATH_CACHE' => JPATH_CACHE,
|
||||
// The path to the administration folder of the current component being executed.
|
||||
'JPATH_COMPONENT_ADMINISTRATOR' => JPATH_COMPONENT_ADMINISTRATOR,
|
||||
// The path to the site folder of the current component being executed.
|
||||
'JPATH_COMPONENT_SITE' => JPATH_COMPONENT_SITE,
|
||||
// The path to the current component being executed.
|
||||
'JPATH_COMPONENT' => JPATH_COMPONENT,
|
||||
// The path to folder containing the configuration.php file.
|
||||
'JPATH_CONFIGURATION' => JPATH_CONFIGURATION,
|
||||
// The path to the installation folder.
|
||||
'JPATH_INSTALLATION' => JPATH_INSTALLATION,
|
||||
// The path to the libraries folder.
|
||||
'JPATH_LIBRARIES' => JPATH_LIBRARIES,
|
||||
// The path to the plugins folder.
|
||||
'JPATH_PLUGINS' => JPATH_PLUGINS,
|
||||
// The path to the installed Joomla! site.
|
||||
'JPATH_ROOT' => JPATH_ROOT,
|
||||
// The path to the installed Joomla! site.
|
||||
'JPATH_SITE' => JPATH_SITE,
|
||||
// The path to the templates folder.
|
||||
'JPATH_THEMES' => JPATH_THEMES
|
||||
);
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -1403,7 +1353,7 @@ class Structure extends Get
|
||||
*/
|
||||
protected function updateDynamicPath($path)
|
||||
{
|
||||
return $this->setPlaceholders($path, $this->constantPaths);
|
||||
return $this->setPlaceholders($path, ComponentbuilderHelper::$constantPaths);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user