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
Merge "API: Add assertuser parameter"
[lhc/web/wiklou.git]
/
maintenance
/
dumpUploads.php
diff --git
a/maintenance/dumpUploads.php
b/maintenance/dumpUploads.php
index
64884d5
..
8d63fe5
100644
(file)
--- a/
maintenance/dumpUploads.php
+++ b/
maintenance/dumpUploads.php
@@
-76,7
+76,7
@@
By default, outputs relative paths against the parent directory of $wgUploadDire
* @param bool $shared True to pass shared-dir settings to hash func
*/
function fetchUsed( $shared ) {
* @param bool $shared True to pass shared-dir settings to hash func
*/
function fetchUsed( $shared ) {
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$image = $dbr->tableName( 'image' );
$imagelinks = $dbr->tableName( 'imagelinks' );
$image = $dbr->tableName( 'image' );
$imagelinks = $dbr->tableName( 'imagelinks' );
@@
-97,9
+97,9
@@
By default, outputs relative paths against the parent directory of $wgUploadDire
* @param bool $shared True to pass shared-dir settings to hash func
*/
function fetchLocal( $shared ) {
* @param bool $shared True to pass shared-dir settings to hash func
*/
function fetchLocal( $shared ) {
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$result = $dbr->select( 'image',
$result = $dbr->select( 'image',
-
array( 'img_name' )
,
+
[ 'img_name' ]
,
'',
__METHOD__ );
'',
__METHOD__ );
@@
-111,7
+111,7
@@
By default, outputs relative paths against the parent directory of $wgUploadDire
function outputItem( $name, $shared ) {
$file = wfFindFile( $name );
if ( $file && $this->filterItem( $file, $shared ) ) {
function outputItem( $name, $shared ) {
$file = wfFindFile( $name );
if ( $file && $this->filterItem( $file, $shared ) ) {
- $filename = $file->getPath();
+ $filename = $file->get
LocalRef
Path();
$rel = wfRelativePath( $filename, $this->mBasePath );
$this->output( "$rel\n" );
} else {
$rel = wfRelativePath( $filename, $this->mBasePath );
$this->output( "$rel\n" );
} else {