// TODO: CRM_Extension_Container_Basic( /modules )
// TODO: CRM_Extension_Container_Basic( /vendors )
+ // At time of writing, D6, D7, and WP support cmsRootPath() but J does not
+ $cmsRootPath = $config->userSystem->cmsRootPath();
+ if (NULL !== $cmsRootPath) {
+ $vendorPath = $cmsRootPath . DIRECTORY_SEPARATOR . 'vendor';
+ if (is_dir($vendorPath)) {
+ $containers['cmsvendor'] = new CRM_Extension_Container_Basic($vendorPath, $config->userFrameworkBaseURL . DIRECTORY_SEPARATOR . 'vendor', $this->getCache(), 'cmsvendor');
+ }
+ }
+
$this->fullContainer = new CRM_Extension_Container_Collection($containers, $this->getCache(), 'full');
}
return $this->fullContainer;
$this->_repoUrl = false;
}
else {
- $vars = array(
- '{ver}' => CRM_Utils_System::version(),
- '{uf}' => $config->userFramework,
- '{php}' => phpversion(),
- );
- $this->_repoUrl = strtr($url, $vars);
+ $this->_repoUrl = CRM_Utils_System::evalUrl($url);
}
}
return $this->_repoUrl;