mirror of
https://github.com/flarum/core.git
synced 2025-07-26 19:20:21 +02:00
Change exception message
This commit is contained in:
@@ -35,7 +35,7 @@ class ExtensionValidator
|
|||||||
$default_locale = $this->app->make('flarum.settings')->get('default_locale');
|
$default_locale = $this->app->make('flarum.settings')->get('default_locale');
|
||||||
$locale = array_get($event->extension->extra, 'flarum-locale.code');
|
$locale = array_get($event->extension->extra, 'flarum-locale.code');
|
||||||
if ($locale === $default_locale) {
|
if ($locale === $default_locale) {
|
||||||
throw new MethodNotAllowedException('You cannot remove all your language packs!');
|
throw new MethodNotAllowedException('You cannot disable the default language pack!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user