#29280Extension Manager: can't download extension from second repository
Description
When I try to download an extension from a second repository, which is added in the new Extension Manager, I get an error that there are network problems.
Getting the extensions.xml.gz from this repository is working fine.
I researched the code and located the problem.
In index.php in the sysext/em/classes is a function getMirrorURL. This function doesn’t take the selectedRepository variable to get the mirrors array. I tried to add this with the following code :
$selectedRepo = $this->settings->getSelectedRepository();
$repoUtility = t3lib_div::makeInstance('tx_em_Repository_Utility');
$repoUtility->setRepository($selectedRepo);
$this->MOD_SETTINGS['mirrorListURL'] = $repoUtility->getRemoteMirrorListFile();
$this->fetchMetaData('mirrors');
$mirrors = unserialize($this->MOD_SETTINGS['extMirrors']);
After adding this code I could download the extensions.
In tx_em_Settings is also a getMirrorURL function. In this function the selectedRepository is used to get the mirrors array.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.