Actions
Bug #15672
closedproblem with selecting random mirror in extension manager
Status:
Closed
Priority:
Should have
Assignee:
Category:
Extension Manager
Target version:
-
Start date:
2006-02-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Theres a bug in the function:
SC_mod_tools_em_index->getMirrorURL()
As long as one hasn#t set a prefered mirror the code is supposed to select a mirror on a random base from an array by using the function
$rand=array_rand$mirrors)
array_rand returns an Integer when called without the second argument therfor the line
$url = 'http://'.$mirrors[$rand0]['host'].$mirrors[$rand0]['path'];
does not wok as intended.
small attached patch fixes the problem.
(issue imported from #M2630)
Files
No data to display
Actions