Make use of \File::getArchiveRel to avoid code duplication
[lhc/web/wiklou.git] / includes / filerepo / file / LocalFile.php
index e4c2173..a8d1fb5 100644 (file)
@@ -1861,7 +1861,7 @@ class LocalFile extends File {
                $this->lock(); // begin
 
                $archiveName = wfTimestamp( TS_MW ) . '!' . $this->getName();
-               $archiveRel = 'archive/' . $this->getHashPath() . $archiveName;
+               $archiveRel = $this->getArchiveRel( $archiveName );
 
                if ( $repo->hasSha1Storage() ) {
                        $sha1 = $repo->isVirtualUrl( $srcPath )