dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b736c1e
)
Fixes LocalFile isMissing always returning true
author
Juan Osorio
<osorio.juan@microsoft.com>
Fri, 5 Apr 2019 21:47:38 +0000
(14:47 -0700)
committer
Juan 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
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
134a104
..
aa04fae
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-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;
}