From: River Tarnell Date: Sat, 2 Jul 2005 23:50:09 +0000 (+0000) Subject: don't try to redeclare classes X-Git-Tag: 1.5.0beta2~72 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1f2587c66f7ba6445327e18603bd695a072f6291;p=lhc%2Fweb%2Fwiklou.git don't try to redeclare classes --- diff --git a/includes/ObjectCache.php b/includes/ObjectCache.php index 4558ba7153..9ead4b4179 100644 --- a/includes/ObjectCache.php +++ b/includes/ObjectCache.php @@ -50,9 +50,11 @@ function &wfGetCache( $inputType ) { if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ){ require_once( 'memcached-client.php' ); - class MemCachedClientforWiki extends memcached { - function _debugprint( $text ) { - wfDebug( "memcached: $text\n" ); + if (!class_exists("MemcachedClientforWiki")) { + class MemCachedClientforWiki extends memcached { + function _debugprint( $text ) { + wfDebug( "memcached: $text\n" ); + } } }