mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 06:35:55 +00:00
initialize Db object early because otherwise ORM might be used unconfigured
This commit is contained in:
@@ -314,6 +314,12 @@ class Config {
|
|||||||
|
|
||||||
static function sanity_check() {
|
static function sanity_check() {
|
||||||
|
|
||||||
|
/* we don't actually need the DB object right now but some checks below might ORM which won't be initialized
|
||||||
|
because it is set up in the Db constructor, which is why it's a good idea to do that as early as possible
|
||||||
|
it is a bit of a hack, maybe ORM should be initialized somewhere else (functions.php?) */
|
||||||
|
|
||||||
|
$pdo = Db::pdo();
|
||||||
|
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
if (strpos(self::get(Config::PLUGINS), "auth_") === false) {
|
if (strpos(self::get(Config::PLUGINS), "auth_") === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user