This commit is contained in:
Jan Rude
2017-05-24 13:02:22 +02:00
parent e1da01505f
commit 527b7303b4
7 changed files with 31 additions and 12 deletions

View File

@@ -42,8 +42,14 @@ class VersionInformation:
version = 'could not be determined'
for path, regex in files.items():
response = Request.version_information(domain.get_name(), path, regex)
if not (response is None) and (len(response) > len(domain.get_typo3_version())):
domain.set_typo3_version(response)
return True
if not (response is None):
string = '[!] ' + 'Found version file:'
print(string.ljust(30) + path)
if (version is 'could not be determined'):
version = response
elif (len(response) > len(version)):
version = response
domain.set_typo3_version(version)