Fix API check if only index is passed

I forgot that the preceding point only extracts the api.php URL if
the "wiki" argument is passed to say it's a MediaWiki wiki (!).
pull/225/head
Federico Leva 9 years ago
parent c1a5e3e0ca
commit 79e2c5951f

@ -1267,12 +1267,12 @@ def getParameters(params=[]):
if api:
check = checkAPI(api=api, session=session)
if check[0]:
if api and check:
index2 = check[1]
api = check[2]
print 'API is OK: ' + api
else:
print 'Error in API, please, provide a correct path to API'
print 'Error in API. Please, provide a correct path to API'
sys.exit(1)
if index and checkIndex(

Loading…
Cancel
Save