Fixes LocalFile isMissing always returning true
authorJuan Osorio <osorio.juan@microsoft.com>
Fri, 5 Apr 2019 21:47:38 +0000 (14:47 -0700)
committerJuan Osorio <osorio.juan@microsoft.com>
Fri, 5 Apr 2019 21:48:52 +0000 (14:48 -0700)
Bug: T220244
Change-Id: I6f4e1371759559a14cb7b2125792fcfbba7e4cf3

includes/filerepo/file/LocalFile.php

index 134a104..aa04fae 100644 (file)
@@ -796,11 +796,14 @@ class LocalFile extends File {
        /** isVisible inherited */
 
        /**
+        * Checks if this file exists in its parent repo, as referenced by its
+        * virtual URL.
+        *
         * @return bool
         */
        function isMissing() {
                if ( $this->missing === null ) {
-                       list( $fileExists ) = $this->repo->fileExists( $this->getVirtualUrl() );
+                       $fileExists = $this->repo->fileExists( $this->getVirtualUrl() );
                        $this->missing = !$fileExists;
                }