Use localization w/trans_choice
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
420278c63b
commit
a96abeac5f
1 changed files with 3 additions and 3 deletions
|
@ -325,9 +325,9 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
// check for inconsistencies when activating scoped locations
|
// check for inconsistencies when activating scoped locations
|
||||||
if ($old_locations_fmcs == '0' && $setting->scope_locations_fmcs == '1') {
|
if ($old_locations_fmcs == '0' && $setting->scope_locations_fmcs == '1') {
|
||||||
$ret = Helper::test_locations_fmcs(false);
|
$mismatched = Helper::test_locations_fmcs(false);
|
||||||
if (count($ret) != 0) {
|
if (count($mismatched) != 0) {
|
||||||
return redirect()->back()->withInput()->with('error', 'Inconsistencies with scoped locations found, please use php artisan snipeit:test-locations-fmcs for details');
|
return redirect()->back()->withInput()->with('error', trans_choice('admin/settings/message.location_scoping.mismatch', count($mismatched)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue