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
Cleanup some incorrect return annotations
[lhc/web/wiklou.git]
/
includes
/
cache
/
FileCacheBase.php
diff --git
a/includes/cache/FileCacheBase.php
b/includes/cache/FileCacheBase.php
index
360420b
..
6d5f8c3
100644
(file)
--- a/
includes/cache/FileCacheBase.php
+++ b/
includes/cache/FileCacheBase.php
@@
-154,15
+154,9
@@
abstract class FileCacheBase {
/**
* Save and compress text to the cache
* @param string $text
/**
* Save and compress text to the cache
* @param string $text
- * @return string Compressed text
+ * @return string
|false
Compressed text
*/
public function saveText( $text ) {
*/
public function saveText( $text ) {
- global $wgUseFileCache;
-
- if ( !$wgUseFileCache ) {
- return false;
- }
-
if ( $this->useGzip() ) {
$text = gzencode( $text );
}
if ( $this->useGzip() ) {
$text = gzencode( $text );
}