Migrate callers to new MWFileProps::getPropsFromPath() method
[lhc/web/wiklou.git] / includes / filerepo / file / LocalFile.php
index 396b47c..60cfdac 100644 (file)
@@ -1179,7 +1179,8 @@ class LocalFile extends File {
                        ) {
                                $props = $this->repo->getFileProps( $srcPath );
                        } else {
-                               $props = FSFile::getPropsFromPath( $srcPath );
+                               $mwProps = new MWFileProps( MimeMagic::singleton() );
+                               $props = $mwProps->getPropsFromPath( $srcPath, true );
                        }
                }