reverting a file a virtual url is passed to upload without props,
get props from backend, virutal urls are not local files.
Change-Id: I1d56a6237e1d2af9941f29e4ba3f0262817b0e8d
if ( !$props ) {
wfProfileIn( __METHOD__ . '-getProps' );
- $props = FileBackend::isStoragePath( $srcPath )
- ? $this->repo->getFileProps( $srcPath )
- : FSFile::getPropsFromPath( $srcPath );
+ if ( $this->repo->isVirtualUrl( $srcPath )
+ || FileBackend::isStoragePath( $srcPath ) )
+ {
+ $props = $this->repo->getFileProps( $srcPath );
+ } else {
+ $props = FSFile::getPropsFromPath( $srcPath );
+ }
wfProfileOut( __METHOD__ . '-getProps' );
}