Index: trunk/phase3/includes/ObjectCache.php |
— | — | @@ -50,9 +50,11 @@ |
51 | 51 | if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ){ |
52 | 52 | require_once( 'memcached-client.php' ); |
53 | 53 | |
54 | | - class MemCachedClientforWiki extends memcached { |
55 | | - function _debugprint( $text ) { |
56 | | - wfDebug( "memcached: $text\n" ); |
| 54 | + if (!class_exists("MemcachedClientforWiki")) { |
| 55 | + class MemCachedClientforWiki extends memcached { |
| 56 | + function _debugprint( $text ) { |
| 57 | + wfDebug( "memcached: $text\n" ); |
| 58 | + } |
57 | 59 | } |
58 | 60 | } |
59 | 61 | |