dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dispatchUser() should use a 302 http status code
[lhc/web/wiklou.git]
/
maintenance
/
findOrphanedFiles.php
diff --git
a/maintenance/findOrphanedFiles.php
b/maintenance/findOrphanedFiles.php
index
765fbe4
..
57e04e0
100644
(file)
--- a/
maintenance/findOrphanedFiles.php
+++ b/
maintenance/findOrphanedFiles.php
@@
-37,7
+37,7
@@
class FindOrphanedFiles extends Maintenance {
$repo = RepoGroup::singleton()->getLocalRepo();
if ( $repo->hasSha1Storage() ) {
$repo = RepoGroup::singleton()->getLocalRepo();
if ( $repo->hasSha1Storage() ) {
- $this->
error( "Local repo uses SHA-1 file storage names; aborting.", 1
);
+ $this->
fatalError( "Local repo uses SHA-1 file storage names; aborting."
);
}
$directory = $repo->getZonePath( 'public' );
}
$directory = $repo->getZonePath( 'public' );
@@
-51,7
+51,7
@@
class FindOrphanedFiles extends Maintenance {
$list = $repo->getBackend()->getFileList( [ 'dir' => $directory ] );
if ( $list === null ) {
$list = $repo->getBackend()->getFileList( [ 'dir' => $directory ] );
if ( $list === null ) {
- $this->
error( "Could not get file listing.", 1
);
+ $this->
fatalError( "Could not get file listing."
);
}
$pathBatch = [];
}
$pathBatch = [];
@@
-61,7
+61,7
@@
class FindOrphanedFiles extends Maintenance {
}
$pathBatch[] = $path;
}
$pathBatch[] = $path;
- if ( count( $pathBatch ) >= $this->
mBatchSize
) {
+ if ( count( $pathBatch ) >= $this->
getBatchSize()
) {
$this->checkFiles( $repo, $pathBatch, $verbose );
$pathBatch = [];
}
$this->checkFiles( $repo, $pathBatch, $verbose );
$pathBatch = [];
}
@@
-151,5
+151,5
@@
class FindOrphanedFiles extends Maintenance {
}
}
}
}
-$maintClass =
'FindOrphanedFiles'
;
+$maintClass =
FindOrphanedFiles::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;