fix str_contains -> strpos

This commit is contained in:
1Day 2022-01-26 13:04:12 +01:00
parent 3d9e463b72
commit 9c69659a27
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ if (isset($_POST['feedDB'])) {
fwrite($logsfile, $logs);
fclose($logsfile);
if (str_contains(getEnvironmentValue("APP_KEY"), "base64")) {
if (strpos(getEnvironmentValue("APP_KEY"), 'base64') !== false) {
header("LOCATION: index.php?step=3");
} else {
header("LOCATION: index.php?step=2.5&message=There was an error. Please check install/logs.txt !");

View file

@ -14,7 +14,7 @@
multiple="multiple" autocomplete="off" @error('defaultLanguage') is-invalid @enderror>
@foreach (config('app.available_locales') as $lang)
<option value="{{ $lang }}" @if (str_contains(config('SETTINGS::LOCALE:AVAILABLE'), $lang)) selected @endif>
<option value="{{ $lang }}" @if (strpos(config('SETTINGS::LOCALE:AVAILABLE'), $lang) !== false) selected @endif>
{{ __($lang) }}
</option>
@endforeach