X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FSqliteInstaller.php;h=43b809c901b3c994b5c59f26263a56071e7d80aa;hb=309d7d71d32c89743a01606d501e5a2319e0da96;hp=1e7e969848b21e299f4cf6754ca3ea4247750c37;hpb=ea3646b476fa588a2166d792ca26a5c802545362;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/SqliteInstaller.php b/includes/installer/SqliteInstaller.php index 1e7e969848..43b809c901 100644 --- a/includes/installer/SqliteInstaller.php +++ b/includes/installer/SqliteInstaller.php @@ -55,7 +55,7 @@ class SqliteInstaller extends DatabaseInstaller { public function checkPrerequisites() { $result = Status::newGood(); // Bail out if SQLite is too old - $db = new DatabaseSqliteStandalone( ':memory:' ); + $db = DatabaseSqlite::newStandaloneInstance( ':memory:' ); if ( version_compare( $db->getServerVersion(), self::MINIMUM_VERSION, '<' ) ) { $result->fatal( 'config-outdated-sqlite', $db->getServerVersion(), self::MINIMUM_VERSION ); } @@ -157,9 +157,9 @@ class SqliteInstaller extends DatabaseInstaller { # Called early on in the installer, later we just want to sanity check # if it's still writable if ( $create ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $ok = wfMkdirParents( $dir, 0700, __METHOD__ ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( !$ok ) { return Status::newFatal( 'config-sqlite-mkdir-error', $dir ); }