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
Merge "Factor out byte limit label logic from edit page to utility function"
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
ForeignAPIRepo.php
diff --git
a/includes/filerepo/ForeignAPIRepo.php
b/includes/filerepo/ForeignAPIRepo.php
index
4176c82
..
43f1d21
100644
(file)
--- a/
includes/filerepo/ForeignAPIRepo.php
+++ b/
includes/filerepo/ForeignAPIRepo.php
@@
-109,7
+109,7
@@
class ForeignAPIRepo extends FileRepo {
*
* @param Title $title
* @param string|bool $time
*
* @param Title $title
* @param string|bool $time
- * @return File
+ * @return File
|false
*/
function newFile( $title, $time = false ) {
if ( $time ) {
*/
function newFile( $title, $time = false ) {
if ( $time ) {
@@
-571,7
+571,7
@@
class ForeignAPIRepo extends FileRepo {
$cache = ObjectCache::getMainWANInstance();
return $cache->getWithSetCallback(
$cache = ObjectCache::getMainWANInstance();
return $cache->getWithSetCallback(
- $this->getLocalCacheKey(
get_class( $this )
, $target, md5( $url ) ),
+ $this->getLocalCacheKey(
static::class
, $target, md5( $url ) ),
$cacheTTL,
function ( $curValue, &$ttl ) use ( $url, $cache ) {
$html = self::httpGet( $url, 'default', [], $mtime );
$cacheTTL,
function ( $curValue, &$ttl ) use ( $url, $cache ) {
$html = self::httpGet( $url, 'default', [], $mtime );
@@
-593,13
+593,13
@@
class ForeignAPIRepo extends FileRepo {
* @throws MWException
*/
function enumFiles( $callback ) {
* @throws MWException
*/
function enumFiles( $callback ) {
- throw new MWException( 'enumFiles is not supported by ' .
get_class( $this )
);
+ throw new MWException( 'enumFiles is not supported by ' .
static::class
);
}
/**
* @throws MWException
*/
protected function assertWritableRepo() {
}
/**
* @throws MWException
*/
protected function assertWritableRepo() {
- throw new MWException(
get_class( $this )
. ': write operations are not supported.' );
+ throw new MWException(
static::class
. ': write operations are not supported.' );
}
}
}
}