Skip to content

Commit

Permalink
[BUGFIX] Handle missing repository mirrors in Languages module
Browse files Browse the repository at this point in the history
If no extension repository mirror is present, properly throw the
(actually advertised) exception which is handled in the
TranslationService already.

Resolves: #83135
Releases: 8.7
Change-Id: Ic24eecd03262ae54d8ef987c4f38143575260fba
Reviewed-on: https://review.typo3.org/56709
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Riny van Tiggelen <info@online-gamer.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
mbrodala authored and lolli42 committed Jul 2, 2018
1 parent 0135224 commit e9f40a7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -236,6 +236,9 @@ public function getRemoteMirrorListFile()
*/
public function getMirrors($forcedUpdateFromRemote = true)
{
if ($this->repository === null) {
throw new ExtensionManagerException('No extension repository was found.', 1523971295);
}
$assignedMirror = $this->repository->getMirrors();
if ($forcedUpdateFromRemote || is_null($assignedMirror) || !is_object($assignedMirror)) {
if ($forcedUpdateFromRemote || !is_file($this->getLocalMirrorListFile())) {
Expand Down

0 comments on commit e9f40a7

Please sign in to comment.