$srcPath = ( $src instanceof FSFile ) ? $src->getPath() : $src;
if ( !$props ) {
- if ( $this->repo->isVirtualUrl( $srcPath )
+ if ( FileRepo::isVirtualUrl( $srcPath )
|| FileBackend::isStoragePath( $srcPath )
) {
$props = $this->repo->getFileProps( $srcPath );
$archiveRel = $this->getArchiveRel( $archiveName );
if ( $repo->hasSha1Storage() ) {
- $sha1 = $repo->isVirtualUrl( $srcPath )
+ $sha1 = FileRepo::isVirtualUrl( $srcPath )
? $repo->getFileSha1( $srcPath )
: FSFile::getSha1Base36FromPath( $srcPath );
/** @var FileBackendDBRepoWrapper $wrapperBackend */
*/
public function getRealPath( $srcPath ) {
$repo = RepoGroup::singleton()->getLocalRepo();
- if ( $repo->isVirtualUrl( $srcPath ) ) {
+ if ( FileRepo::isVirtualUrl( $srcPath ) ) {
/** @todo Just make uploads work with storage paths UploadFromStash
* loads files via virtual URLs.
*/
$this->fileKey = $key;
// resolve mwrepo:// urls
- if ( $repo->isVirtualUrl( $path ) ) {
+ if ( FileRepo::isVirtualUrl( $path ) ) {
$path = $repo->resolveVirtualUrl( $path );
} else {
// check if path appears to be sane, no parent traversals,