Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue when the application database isn't available yet
This fixes "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `winter_translate_locales` where `is_default` = 1 order by `sort_order` asc limit 1)" that occurs when Locale::getDefault() is called in the boot() method of the plugin registration file before the necessary tables exist.
- Loading branch information