foreach ( $list as $path ) {
if ( preg_match( '#^(thumb|deleted)/#', $path ) ) {
continue; // handle ugly nested containers on stock installs
foreach ( $list as $path ) {
if ( preg_match( '#^(thumb|deleted)/#', $path ) ) {
continue; // handle ugly nested containers on stock installs
$pathBatch[] = $path;
if ( count( $pathBatch ) >= $this->mBatchSize ) {
$this->checkFiles( $repo, $pathBatch, $verbose );
$pathBatch[] = $path;
if ( count( $pathBatch ) >= $this->mBatchSize ) {
$this->checkFiles( $repo, $pathBatch, $verbose );
foreach ( $paths as $path ) {
$name = basename( $path );
if ( preg_match( '#^archive/#', $path ) ) {
foreach ( $paths as $path ) {
$name = basename( $path );
if ( preg_match( '#^archive/#', $path ) ) {
$oldNames[] = $name;
list( , $base ) = explode( '!', $name, 2 ); // <TS_MW>!<img_name>
$oiWheres[] = $dbr->makeList(
$oldNames[] = $name;
list( , $base ) = explode( '!', $name, 2 ); // <TS_MW>!<img_name>
$oiWheres[] = $dbr->makeList(
- array( 'name' => 'img_name', 'old' => 0 ),
- $imgIN ? array( 'img_name' => $imgIN ) : '1=0'
+ [ 'name' => 'img_name', 'old' => 0 ],
+ $imgIN ? [ 'img_name' => $imgIN ] : '1=0'