mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Change exception message
This commit is contained in:
parent
c702e911b3
commit
0df6eee10f
|
@ -35,7 +35,7 @@ class ExtensionValidator
|
|||
$default_locale = $this->app->make('flarum.settings')->get('default_locale');
|
||||
$locale = array_get($event->extension->extra, 'flarum-locale.code');
|
||||
if ($locale === $default_locale) {
|
||||
throw new MethodNotAllowedException('You cannot remove all your language packs!');
|
||||
throw new MethodNotAllowedException('You cannot disable the default language pack!');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user