diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2004-06-13 01:15:16 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2004-06-13 01:15:16 +0000 |
commit | 1d6017272668b85e6944039381854a3851b6ae01 (patch) | |
tree | 04f07e820d7f8ee252fbe5c1b1f8f0b84a3ab95b /includes/BlockCache.php | |
parent | aeac600626ab9b92f8c09c919ba05f1e62d19cd8 (diff) | |
download | mediawikicore-1d6017272668b85e6944039381854a3851b6ae01.tar.gz mediawikicore-1d6017272668b85e6944039381854a3851b6ae01.zip |
Merge 1.3.0beta3 from HEAD
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4051
Diffstat (limited to 'includes/BlockCache.php')
-rw-r--r-- | includes/BlockCache.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/BlockCache.php b/includes/BlockCache.php index 135d206d9bec..8b49a0142c13 100644 --- a/includes/BlockCache.php +++ b/includes/BlockCache.php @@ -7,15 +7,15 @@ class BlockCache { var $mData = false, $mMemcKey; - function BlockCache( $deferLoad = false, $dbName = "" ) + function BlockCache( $deferLoad = false, $dbName = '' ) { global $wgDBname; - if ( $dbName == "" ) { + if ( $dbName == '' ) { $dbName = $wgDBname; } - $this->mMemcKey = "$dbName:ipblocks"; + $this->mMemcKey = $dbName.':ipblocks'; if ( !$deferLoad ) { $this->load(); @@ -39,7 +39,7 @@ class BlockCache if ( !is_array( $this->mData ) ) { # Load from DB $this->mData = array(); - Block::enumBlocks( "wfBlockCacheInsert", "" ); # Calls $this->insert() + Block::enumBlocks( 'wfBlockCacheInsert', '' ); # Calls $this->insert() } if ( $saveMemc ) { @@ -78,7 +78,7 @@ class BlockCache if ( $blocked ) { # Clear low order bits if ( $networkBits != 32 ) { - $ip .= "/$networkBits"; + $ip .= '/'.$networkBits; $ip = Block::normaliseRange( $ip ); } $block = new Block(); |