X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=ec276c1a69ec3445f8dd8f2be385e7f3668eec21;hb=85f07327af5f63be616ac5d0213c80f5e5828b5c;hp=026ac025c083cfc36283bd7b6164653315d7e020;hpb=e2d6e193c94cb0b9b82654d2365113973dd41ecb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 026ac025c0..ec276c1a69 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -32,8 +32,8 @@ require_once __DIR__ . '/Maintenance.php'; class UploadDumper extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Generates list of uploaded files which can be fed to tar or similar. -By default, outputs relative paths against the parent directory of \$wgUploadDirectory."; + $this->addDescription( 'Generates list of uploaded files which can be fed to tar or similar. +By default, outputs relative paths against the parent directory of $wgUploadDirectory.' ); $this->addOption( 'base', 'Set base relative path instead of wiki include root', false, true ); $this->addOption( 'local', 'List all local files, used or not. No shared files included' ); $this->addOption( 'used', 'Skip local images that are not used' ); @@ -99,7 +99,7 @@ By default, outputs relative paths against the parent directory of \$wgUploadDir function fetchLocal( $shared ) { $dbr = $this->getDB( DB_SLAVE ); $result = $dbr->select( 'image', - array( 'img_name' ), + [ 'img_name' ], '', __METHOD__ );