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
RevisionUnitTest for various getters and setters
[lhc/web/wiklou.git]
/
includes
/
revisiondelete
/
RevDelFileItem.php
diff --git
a/includes/revisiondelete/RevDelFileItem.php
b/includes/revisiondelete/RevDelFileItem.php
index
06b596e
..
9beafc9
100644
(file)
--- a/
includes/revisiondelete/RevDelFileItem.php
+++ b/
includes/revisiondelete/RevDelFileItem.php
@@
-202,10
+202,10
@@
class RevDelFileItem extends RevDelItem {
'width' => $file->getWidth(),
'height' => $file->getHeight(),
'size' => $file->getSize(),
'width' => $file->getWidth(),
'height' => $file->getHeight(),
'size' => $file->getSize(),
+ 'userhidden' => (bool)$file->isDeleted( Revision::DELETED_USER ),
+ 'commenthidden' => (bool)$file->isDeleted( Revision::DELETED_COMMENT ),
+ 'contenthidden' => (bool)$this->isDeleted(),
];
];
- $ret += $file->isDeleted( Revision::DELETED_USER ) ? [ 'userhidden' => '' ] : [];
- $ret += $file->isDeleted( Revision::DELETED_COMMENT ) ? [ 'commenthidden' => '' ] : [];
- $ret += $this->isDeleted() ? [ 'contenthidden' => '' ] : [];
if ( !$this->isDeleted() ) {
$ret += [
'url' => $file->getUrl(),
if ( !$this->isDeleted() ) {
$ret += [
'url' => $file->getUrl(),