X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FpatchSql.php;h=43fbd38cd181aa8bc55328864f0a36ac5fad0e2e;hb=3aa7e1d66a0f3d91043c7abf0e10eac15f445a80;hp=f94046a617ec28da798bdfb4ef4786f582c3c084;hpb=fb25d9fe77207c86d3f99934c74d5a0fa96ef0a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/patchSql.php b/maintenance/patchSql.php index f94046a617..43fbd38cd1 100644 --- a/maintenance/patchSql.php +++ b/maintenance/patchSql.php @@ -46,11 +46,11 @@ class PatchSql extends Maintenance { public function execute() { $dbw = $this->getDB( DB_MASTER ); foreach ( $this->mArgs as $arg ) { - $files = array( + $files = [ $arg, $dbw->patchPath( $arg ), $dbw->patchPath( "patch-$arg.sql" ), - ); + ]; foreach ( $files as $file ) { if ( file_exists( $file ) ) { $this->output( "$file ...\n" );