Better error message
This commit is contained in:
parent
863ab1d8af
commit
7262a097e3
@ -101,6 +101,10 @@ if ($xmlremote && !preg_match('/^https?:\/\//', $xmlremote)) {
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
setEventMessages($langs->trans("ErrorURLMustStartWithHttp", $xmlremote), '', 'errors');
|
setEventMessages($langs->trans("ErrorURLMustStartWithHttp", $xmlremote), '', 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
|
} elseif ($xmlremote && !preg_match('/\.xml$/', $xmlremote)) {
|
||||||
|
$langs->load("errors");
|
||||||
|
setEventMessages($langs->trans("ErrorURLMustEndWith", $xmlremote, '.xml'), '', 'errors');
|
||||||
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test if remote test is ok
|
// Test if remote test is ok
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user