mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Use the Str facade
This commit is contained in:
parent
97e5fa07fa
commit
067018cf47
@ -19,6 +19,7 @@ use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Lang;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Str;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class SettingsController extends Controller
|
||||
@ -248,7 +249,7 @@ class SettingsController extends Controller
|
||||
return Redirect::to($redirectUrl)->withErrors($file->getErrorMessage());
|
||||
}
|
||||
|
||||
if (!starts_with($file->getMimeType(), 'image/')) {
|
||||
if (!Str::startsWith($file->getMimeType(), 'image/')) {
|
||||
return Redirect::to($redirectUrl)->withErrors(trans('dashboard.settings.app-setup.images-only'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user