X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FMaintenance.php;h=fb2cd8c68fe010762914e3b4aa4567af018e6704;hb=5eda555000550e5beebcac376508efbf89c9ae2c;hp=91a027ee4e86def187fee75a408c9c67953090b2;hpb=5dbfd5bf80a4469fef2da1b56d57129a454dc03f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 91a027ee4e..fb2cd8c68f 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1273,9 +1273,9 @@ abstract class LoggedUpdateMaintenance extends Maintenance { $db = $this->getDB( DB_MASTER ); $key = $this->getUpdateKey(); - if ( !$this->hasOption( 'force' ) && - $db->selectRow( 'updatelog', '1', array( 'ul_key' => $key ), __METHOD__ ) ) - { + if ( !$this->hasOption( 'force' ) + && $db->selectRow( 'updatelog', '1', array( 'ul_key' => $key ), __METHOD__ ) + ) { $this->output( "..." . $this->updateSkippedMessage() . "\n" ); return true; } @@ -1284,9 +1284,7 @@ abstract class LoggedUpdateMaintenance extends Maintenance { return false; } - if ( - $db->insert( 'updatelog', array( 'ul_key' => $key ), __METHOD__, 'IGNORE' ) ) - { + if ( $db->insert( 'updatelog', array( 'ul_key' => $key ), __METHOD__, 'IGNORE' ) ) { return true; } else { $this->output( $this->updatelogFailedMessage() . "\n" );