forked from Cavemanon/cavepaintings
more
This commit is contained in:
@@ -26,7 +26,7 @@ class MimeSystem extends Extension
|
||||
// adjustment needs to be made to the mime types.
|
||||
|
||||
if ($this->get_version(self::VERSION) < 1) {
|
||||
if ($database->transaction) {
|
||||
if ($database->is_transaction_open()) {
|
||||
// Each of these commands could hit a lot of data, combining
|
||||
// them into one big transaction would not be a good idea.
|
||||
$database->commit();
|
||||
|
@@ -186,7 +186,7 @@ class Upgrade extends Extension
|
||||
|
||||
if ($this->get_version("db_version") < 21) {
|
||||
log_info("upgrade", "Setting predictable media values for known file types");
|
||||
if ($database->transaction) {
|
||||
if ($database->is_transaction_open()) {
|
||||
// Each of these commands could hit a lot of data, combining
|
||||
// them into one big transaction would not be a good idea.
|
||||
$database->commit();
|
||||
|
Reference in New Issue
Block a user