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
filebackend: clean up some comments and remove unused FileBackendStoreOpHandle field
[lhc/web/wiklou.git]
/
includes
/
libs
/
filebackend
/
fsfile
/
FSFile.php
diff --git
a/includes/libs/filebackend/fsfile/FSFile.php
b/includes/libs/filebackend/fsfile/FSFile.php
index
553c9aa
..
1937e37
100644
(file)
--- a/
includes/libs/filebackend/fsfile/FSFile.php
+++ b/
includes/libs/filebackend/fsfile/FSFile.php
@@
-21,6
+21,8
@@
* @ingroup FileBackend
*/
* @ingroup FileBackend
*/
+use Wikimedia\AtEase\AtEase;
+
/**
* Class representing a non-directory file on the file system
*
/**
* Class representing a non-directory file on the file system
*
@@
-75,9
+77,9
@@
class FSFile {
* @return string|bool TS_MW timestamp or false on failure
*/
public function getTimestamp() {
* @return string|bool TS_MW timestamp or false on failure
*/
public function getTimestamp() {
-
Wikimedia\
suppressWarnings();
+
AtEase::
suppressWarnings();
$timestamp = filemtime( $this->path );
$timestamp = filemtime( $this->path );
-
Wikimedia\
restoreWarnings();
+
AtEase::
restoreWarnings();
if ( $timestamp !== false ) {
$timestamp = wfTimestamp( TS_MW, $timestamp );
}
if ( $timestamp !== false ) {
$timestamp = wfTimestamp( TS_MW, $timestamp );
}
@@
-168,9
+170,9
@@
class FSFile {
return $this->sha1Base36;
}
return $this->sha1Base36;
}
-
Wikimedia\
suppressWarnings();
+
AtEase::
suppressWarnings();
$this->sha1Base36 = sha1_file( $this->path );
$this->sha1Base36 = sha1_file( $this->path );
-
Wikimedia\
restoreWarnings();
+
AtEase::
restoreWarnings();
if ( $this->sha1Base36 !== false ) {
$this->sha1Base36 = Wikimedia\base_convert( $this->sha1Base36, 16, 36, 31 );
if ( $this->sha1Base36 !== false ) {
$this->sha1Base36 = Wikimedia\base_convert( $this->sha1Base36, 16, 36, 31 );