dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes LocalFile isMissing always returning true
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
LocalFile.php
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 */
/**
/** 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 ) {
* @return bool
*/
function isMissing() {
if ( $this->missing === null ) {
-
list( $fileExists )
= $this->repo->fileExists( $this->getVirtualUrl() );
+
$fileExists
= $this->repo->fileExists( $this->getVirtualUrl() );
$this->missing = !$fileExists;
}
$this->missing = !$fileExists;
}