X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FsyncFileBackend.php;h=7d343b237dc72d35e98277ced895b877461bbd17;hb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;hp=76a5721977f4fbdabec6beb15908dc0462df54f7;hpb=c98996f3f4f12c80ff90c54a0df793d0a6022b8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/syncFileBackend.php b/maintenance/syncFileBackend.php index 76a5721977..7d343b237d 100644 --- a/maintenance/syncFileBackend.php +++ b/maintenance/syncFileBackend.php @@ -49,7 +49,11 @@ class SyncFileBackend extends Maintenance { $src = FileBackendGroup::singleton()->get( $this->getOption( 'src' ) ); $posDir = $this->getOption( 'posdir' ); - $posFile = $posDir ? $posDir . '/' . wfWikiID() : false; + if ( $posDir != '' ) { + $posFile = "$posDir/" . rawurlencode( $src->getDomainId() ); + } else { + $posFile = false; + } if ( $this->hasOption( 'posdump' ) ) { // Just dump the current position into the specified position dir