Change exception message

This commit is contained in:
Davis 2016-10-04 15:09:43 -05:00 committed by GitHub
parent c702e911b3
commit 0df6eee10f

View File

@ -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!');
}
}
}