From 940c1e1089943649a8dad11cd6ef7aab65b02731 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 16 Aug 2016 13:30:04 -0700 Subject: [PATCH] Sqlite: DBError expects a database object as its first parameter That constructor is dumb. It's also dumb to need a DB object considering the only subclass using it is DBConnectionError to getServerName() Change-Id: I8e09989fd6635ccdffdba1102f55a9d3b7ba2f6e --- includes/db/DatabaseSqlite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 9d0a0f7124..5bbba886e1 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -911,7 +911,7 @@ class DatabaseSqlite extends Database { public function lock( $lockName, $method, $timeout = 5 ) { if ( !is_dir( "{$this->dbDir}/locks" ) ) { // create dir as needed if ( !is_writable( $this->dbDir ) || !mkdir( "{$this->dbDir}/locks" ) ) { - throw new DBError( "Cannot create directory \"{$this->dbDir}/locks\"." ); + throw new DBError( $this, "Cannot create directory \"{$this->dbDir}/locks\"." ); } } -- 2.20.1